CreditCardAuthReply → OrderCreateRequest
An OrderCreateRequest
has elements under Payments
, one of which can be a
CreditCard
. Several fields in the CreditCard
are supplied from the
CreditCardAuthReply
from an earlier corresponding CreditCardAuthRequest
.
Mapping
The CreditCardAuthReply
field mappings start at: /CreditCardAuthReply
The OrderCreateRequest
field mappings start at:
/OrderCreateRequest/Payment/Payments/CreditCard
CreditCardAuthReply Field | OrderCreateRequest Field | Transform | Comment |
---|---|---|---|
//PaymentContext/OrderId |
//PaymentContext/PaymentSessionId |
copy as is |
|
//PaymentContext/PaymentAccountUniqueId |
//PaymentContext/PaymentAccountUniqueId |
copy as is |
|
//AuthorizationResponseCode |
//Authorization/ResponseCode |
||
//BankAuthorizationCode |
//Authorization/BankAuthorizationCode |
copy as is |
|
//CVV2ResponseCode |
//Authorization/CVV2ResponseCode |
copy as is |
|
//AVSResponseCode |
//Authorization/AVSResponseCode |
copy as is |
|
//PhoneResponseCode |
//Authorization/PhoneResponseCode |
copy as is |
Required for Amex. |
//NameResponseCode |
//Authorization/NameResponseCode |
copy as is |
Required for Amex. |
//EmailResponseCode |
//Authorization/EmailResponseCode |
copy as is |
Required for Amex. |
//AmountAuthorized |
//Authorization/AmountAuthorized |
copy as is |
Mapping Example
|
|
Transforms
Response Code Transform
The response code at //Authorization/ResponseCode
in the CreditCardAuthReply
can have many values. The relevant mapping are below (lowercase x’s mean any
character):
CreditCardAuthReply | OrderCreateRequest | Comment |
---|---|---|
AP01 |
APPROVED |
AP01 is the only code that means the payment was approved. |
NDxx, NCxx, NRxx, NSxx |
- |
Any response starting with ND, NC, NR, or NS means the card was declined. As such an OrderCreateRequest shouldn’t even be made with such a payment method. |
TO01 |
PaymentProcessorTimeout |