Link Money Authorize Payment
Overview
The GetPaymentAuthorizationRequest is sent with the PaymentId, which is received from INPA reply, and the CustomerId, which is received during the bank account linking process.
URI Summary
Action |
URI Template |
URI Example |
Non-URI Request |
Response |
---|---|---|---|---|
POST |
/v[M.m]/stores/{StoreID}/payments/authorization/get.[format] |
/v1.0/stores/stores123/payments/authorization/get.xml |
XML |
200 + XML response |
Request Example
<?xml version="1.0" encoding="UTF-8"?>
<GetPaymentAuthorizationRequest xmlns="http://api.gsicommerce.com/schema/checkout/1.0" requestId="a6-a19f-4e42-956d-d581ce784bec">
<OrderId>123456789</OrderId>
<PaymentId>hu2vcod6n20w00</PaymentId>
<CustomerId>2ed64c83-fad1-4c20-a931-347ea79dd27d</CustomerId>
</GetPaymentAuthorizationRequest>
Request Elements
Element |
Optional/Required |
Description |
Type |
Restriction |
---|---|---|---|---|
/GetPaymentAuthorizationRequest/ |
Required |
Unique identifier for an order across all transactions of the same order.
|
String |
Min 1 character
|
/GetPaymentAuthorizationRequest/ |
Required |
The payment ID received in Initialize Payment Authorization response. |
String |
Min 1 chars
|
/GetPaymentAuthorizationRequest/ |
Required |
After the Customer's Bank account is successfully linked, Link Money will redirect to the Webstore redirect URL with the CUSTOMER_ID. |
String |
Min 1 chars
|
/GetPaymentAuthorizationRequest/ |
Required |
A unique identifier for the request.
|
String |
Min 1 character
|
Response Examples
Approved Payment Authorization Status Response
In case of approved response, the webstore should accept the order.
<?xml version="1.0" encoding="UTF-8"?>
<GetPaymentAuthorizationReply xmlns:payment="http://schema.gsicommerce.com/payments/types/1.0/"
xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
<PaymentContext>
<OrderId>123456789</OrderId>
<TenderType>AH</TenderType>
<PaymentAccountUniqueId isToken="true">ACHBANKTRANSFER</PaymentAccountUniqueId>
</PaymentContext>
<ResponseCode>APPROVED</ResponseCode>
<AmountAuthorized currencyCode="USD">10.95</AmountAuthorized>
</GetPaymentAuthorizationReply>
Pending Payment Authorization Status Response
In case of pending response, it should be considered as a success, and the webstore doesn't have to retry it. The webstore should accept the order.
<?xml version="1.0" encoding="UTF-8"?>
<GetPaymentAuthorizationReply xmlns="http://api.gsicommerce.com/schema/checkout/1.0"
xmlns:payment="http://schema.gsicommerce.com/payments/types/1.0/">
<PaymentContext>
<OrderId>123456789</OrderId>
<TenderType>AH</TenderType>
<PaymentAccountUniqueId isToken="true">ACHBANKTRANSFER</PaymentAccountUniqueId>
</PaymentContext>
<ResponseCode>PENDING</ResponseCode>
<AmountAuthorized currencyCode="USD">0</AmountAuthorized>
</GetPaymentAuthorizationReply>
Declined Payment Authorization Status Response
<?xml version="1.0" encoding="UTF-8"?>
<GetPaymentAuthorizationReply xmlns="http://api.gsicommerce.com/schema/checkout/1.0"
xmlns:payment="http://schema.gsicommerce.com/payments/types/1.0/">
<PaymentContext>
<OrderId>123456789</OrderId>
<TenderType>AH</TenderType>
<PaymentAccountUniqueId isToken="true">ACHBANKTRANSFER</PaymentAccountUniqueId>
</PaymentContext>
<ResponseCode>DECLINED</ResponseCode>
<AmountAuthorized currencyCode="USD">0</AmountAuthorized>
</GetPaymentAuthorizationReply>
Error Payment Authorization Status Response
<?xml version="1.0" encoding="UTF-8"?>
<GetPaymentAuthorizationReply xmlns="http://api.gsicommerce.com/schema/checkout/1.0"
xmlns:payment="http://schema.gsicommerce.com/payments/types/1.0/">
<PaymentContext>
<OrderId>123456789</OrderId>
<TenderType>AH</TenderType>
<PaymentAccountUniqueId isToken="true">ACHBANKTRANSFER</PaymentAccountUniqueId>
</PaymentContext>
<ResponseCode>ERROR</ResponseCode>
<AmountAuthorized currencyCode="USD">0</AmountAuthorized>
</GetPaymentAuthorizationReply>
Fault Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Fault xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
<CreateTimestamp>2023-12-20T13:30:03.891Z</CreateTimestamp>
<Code>NoMatchingPaymentIdException</Code>
<Description>There are no successful initialize payment authorization requests matching id 26qmux000</Description>
</Fault>
Timeout Payment Authorization Status Response
In case of timeout response, the webstore should retry the Get Payment Authorization Request with the same orderId and a new request ID.
<?xml version="1.0" encoding="UTF-8"?>
<GetPaymentAuthorizationReply xmlns="http://api.gsicommerce.com/schema/checkout/1.0"
xmlns:payment="http://schema.gsicommerce.com/payments/types/1.0/">
<PaymentContext>
<OrderId>123456789</OrderId>
<TenderType>AH</TenderType>
<PaymentAccountUniqueId isToken="true">ACHBANKTRANSFER</PaymentAccountUniqueId>
</PaymentContext>
<ResponseCode>TIMEOUT</ResponseCode>
<AmountAuthorized currencyCode="USD">0</AmountAuthorized>
</GetPaymentAuthorizationReply>
In case of timeout in Radial or webstore
If there is no response from Radial, or response timed out between webstore and Radial, or the webstore couldn't get a response from Radial for any reason, the webstore should retry the Get Payment Authorization request with the same orderId and the same request ID
Response Elements
Element |
Optional/Required |
Description |
Type |
Restriction |
---|---|---|---|---|
/GetPaymentAuthorizationReply/PaymentContext |
Required |
Unique identifier of the payment transaction for the order. |
ComplexType |
|
/GetPaymentAuthorizationReply/PaymentContext/OrderId |
Required |
Unique identifier of the order from the GetPaymentAuthorizationRequest |
String |
Min 1 char
|
/GetPaymentAuthorizationReply/ |
Required |
Identifies the tender type. AH is the tender type for Link Money. |
String |
Min 2 char
|
/GetPaymentAuthorizationReply/ |
Required |
ACHBANKTRANSFER |
String |
Max 22 characters |
/GetPaymentAuthorizationReply/ |
Required |
Status code describing the current state of the authorization. |
Enum |
Can be any of the below |
/GetPaymentAuthorizationReply/ |
Required |
The amount that has been authorized. |
Decimal |
Min 0.00
|