Third party status poll
Payments
The payments REST services allow you to initiate a payment, retrieve the payment details or perform specific actions like refunding or requesting capture of a payment. A payment is identified by its paymentId. Some payment products allow a two step approach allowing you to control when the authorization takes place separate from when the funds are actually captured.
Request
Polls a third party for the status of the payment.
Currently only available for payments performed with payment products 3012 (Bancontact) and 863 (WeChat Pay). In the case of Bancontact, it is used to determine if the customer is paying using the Bancontact app and if so, what the payment status is.
Request example
This scenario you will probably use the most
-
const sdkResponse = await client.v1.payments.thirdPartyStatus("merchantId", "paymentId"); // sdkResponse has the following properties: // - status: the HTTP status code // - body: the response body // - isSuccess: true if the call was successful, // or false if the Worldline Global Collect platform returned an error response
Responses
Please find below an overview of the possible responses.
Response 200 - OKThirdPartyStatusResponse
The response contains the current third party status.
Properties
|
|||
Property | Type | Required | Details |
---|---|---|---|
thirdPartyStatus | string | no | read close |
close
DescriptionThe status returned by the third party.
Possible values:
|
Response example
This scenario you will probably use the most
-
{ "thirdPartyStatus" : "WAITING" }