In-App Store Card Update
This method is used by myPOS Checkout API to notify the merchant that the customer has canceled the payment. myPOS Checkout will redirect with this method when the customer chooses to cancel the payment. The call will be made on the previously supplied URL_Cancel.
This is especially useful for gracefully handling payment cancellations and updating your system accordingly.
Method Properties
| Property | Typical Value | Type | Description |
|---|---|---|---|
| Amount | 23.45 | Double | Echo from IPCPurchase. |
| Currency | EUR | A(3) | Echo from IPCPurchase. |
| OrderID | 201203319999999 | String | Echo from IPCPurchase. |
| Signature | BASE64 | BASE64 | SHA-256 hash for all properties in the command. Signature is ALWAYS THE LAST PARAMETER IN THE POST, as it is not used to calculate the hash. |
Workflow Summary
- Customer initiates a transaction.
- During checkout, the customer cancels the payment.
- myPOS Checkout redirects to the
URL_Cancelyou specified. - The POST data contains transaction info including a signature for validation.
Next Steps
- Validate the signature to ensure the request’s authenticity.
- Log the cancellation or update the order status as needed in your system.
- Provide user feedback if appropriate (e.g., "Your payment has been canceled").
Example HTTP POST
POST /your-cancel-endpoint HTTP/1.1
Host: www.yoursite.com
Content-Type: application/x-www-form-urlencoded
Amount=23.45&
Currency=EUR&
OrderID=201203319999999&
Signature=BASE64_SIGNATURE