Security Guidelines
Whether opting for a static or dynamic Transaction Completion Notification URL, prioritizing security is key. Unauthorized access to this URL could enable malicious actors to fabricate payment transactions, leading to potential financial loss. To safeguard against such risks, diligently implement the prescribed security measures outlined below for the protection of the Transaction Completion Notification URL.
Make sure your Transaction Completion Notification URL is secure!
Implement Checksum
A checksum ensures that callback/webhook notifications received from Codapay have not been altered in transit. Partners must validate the checksum before processing the notification.
The checksum format differs depending on the type of notification: Payin, Save Card (Only Available in V2 Payin), or Refund/Chargeback.
Payin Transactions (V1 / V2)
Used for standard payment(Payin) completion notifications.
Formula
txnId + apiKey + orderId + resultCodeExample
txnId =
3381290433880074215apiKey =
5a8ca8f31f19a23c41edd14b29a74fd2orderId =
8ae6ffee169bresultCode =
0
Checksum string:
MD5 result:
Save Card Notifications
Triggered when a user adds or removes a saved payment method.
Events
PAYMENT_METHOD_ADDEDPAYMENT_METHOD_REMOVED
Formula
Example Payload
Checksum string:
→ Apply MD5 hash.
Refund & Chargeback Notifications
Used for refund or chargeback events.
Formula
This ensures that refund/chargeback notifications are validated consistently and securely.
Checksum Comparison Table
Payin (V1/V2)
Query String
txnId + apiKey + orderId + resultCode
MD5
txnId: 3381290433880074215orderId: 8ae6ffee169bresultCode: 0
Save Card (Only Available in V2 Payin)
JSON Body
eventType + apiKey + shopperId + paymentMethodId + partnerShopperId
MD5
eventType: PAYMENT_METHOD_ADDEDshopperId:shp_...
paymentMethodId: pmt_...
Refund / Chargeback
JSON Body
eventType + apiKey + txnId + orderId + resultCode + statusCode
MD5
eventType: REFUND
txnId: 123...
statusCode: 200
Implement HTTPS
This will prevent third parties from message eavesdropping.
Filtering Merchant IP
This whitelisting is based on rendering on the init interface, and only the IP you whitelisted can request orders. Directions: Publisher Portal -> Integration -> Security -> Codapay Partner Settings -> Action (Edit IP Address)
Filtering Codapay IP
Only if the transaction callback can get through your firewall and send you a transaction completion notification message.
To ensure that payment callback notifications are successfully received and not rejected by your servers, please take note of the following:
If your firewall or server configuration requires IP whitelisting for Codapay egress IPs, please send an email request to our support team at codapay_integration@coda.co
Upon your request, we will provide you with the updated IP ranges or alternative domain/endpoint validation details required for your whitelist configuration.
Last updated
Was this helpful?