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

PropertyTypical ValueTypeDescription
Amount23.45DoubleEcho from IPCPurchase.
CurrencyEURA(3)Echo from IPCPurchase.
OrderID201203319999999StringEcho from IPCPurchase.
SignatureBASE64BASE64SHA-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

  1. Customer initiates a transaction.
  2. During checkout, the customer cancels the payment.
  3. myPOS Checkout redirects to the URL_Cancel you specified.
  4. 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