PurchaseOK

Purpose

The IPCPurchaseOK method is a client-side redirect that sends transaction data to the merchant’s URL_OK after a successful payment. This is triggered in the customer’s browser and is not a secure server-to-server notification.

Important:
Do not rely on IPCPurchaseOK for payment confirmation.
Always use IPCPurchaseNotify for secure, server-to-server verification.

When myPOS Triggers This Method

  • A payment is successfully processed
  • The customer’s browser is redirected to your URL_OK
  • Transaction data is sent via GET or POST (depending on integration)

Parameters Sent via Redirect

ParameterExampleTypeDescription
IPCmethodIPCPurchaseOKStringName of the API method.
SID000000000000010StringStore ID in the myPOS system.
Amount23.45DoubleTransaction amount.
CurrencyEURA(3)ISO currency code.
OrderID201203319999999StringMerchant’s reference to the order.
IPC_Trnref12345678923StringmyPOS transaction reference.
RequestDateTime2012-03-31 23:59:59DateTimeDate and time of the payment request.
RequestSTAN123456N(6)System Trace Audit Number (sequential).
BillingDescriptorMYPOS *BillingDescriptorStringText shown on the customer’s bank statement.
SignatureBASE64…BASE64Hash of all above fields (always the last parameter). Used to verify integrity.

Example Redirect Request

GET /your_ok_handler.php?IPCmethod=IPCPurchaseOK&SID=000000000000010&Amount=50.00&Currency=EUR&OrderID=1440146333&IPC_Trnref=813705&RequestSTAN=000006&RequestDateTime=2015-08-21 10:39:37&Signature=your_generated_signature

Sample Response Data (GET Array)

Array (
    [IPCmethod] => IPCPurchaseOK
    [SID] => 000000000000010
    [Amount] => 50.00
    [Currency] => EUR
    [OrderID] => 1440146333
    [IPC_Trnref] => 813705
    [RequestSTAN] => 000006
    [RequestDateTime] => 2015-08-21 10:39:37
    [Signature] => <base64-encoded signature>
)

Security Note

Always verify the signature to confirm the request really comes from myPOS.
Do not use this method for critical payment confirmation.