Pay
When you have the My Pages section in place and want the customer to be able to actually pay, you can use this method to get the information needed to initialize a payment.
POST /Pay
* Required
Property | Data type | Description |
---|---|---|
BODY: | ||
language | string | Language in the checkout |
accountId* | string (guid) | ID to the account the customer wants to initialize payment for. Could also be the ID of an invoice. |
Request
Response
Response parameters
Property | Data type | Description |
---|---|---|
purchaseId | string | Unique ID to the purchase, needed to initialize the checkout |
jwt | string | Purchase JWT token, needed to initialize the checkout |
Payment status
Get information regarding the status of a payment
POST /Pay/Status
* Required
Property | Data type | Description |
---|---|---|
BODY: | ||
purchaseId | string | Unique ID to the purchase |
accountId* | string | ID of the account you want to know status on. Could also be the ID of an invoice. |
Request
Response
Response parameters
Property | Data type | Description |
---|---|---|
State | string (Enum) | StatusTypes: [ Paid, Unpaid, Error, Cancelled, TimedOut ] |