Complete notification logs showing USD price
TotalPrice in the Coda callback displays the local price by default. If you need the InitRequest USD price to be included in the callback, you can enable USD Price Notification in the Coda Portal:
Coda Portal → Codapay → Sandbox/Production Configuration → Edit → Merchant & URLs Configuration → Enable USD Price Notification
For comparison, consider the following example, with USD Price appended to the end of the callback parameter:
Checking a transaction status
https://<your_webhook_url>?
TxnId=7715122576202672831
OrderId=365f5Z619951c1a4b8
TotalPrice=1.17
PaymentType=237
ResultCode=0
Checksum=10741fa6be7e6f2b189f029b3f8a0963
+ USDPrice=0.30
PayTaxRate=8.00 //This field is only returned in v2.0 API
PayCurrency=MYR //This field is only returned in v2.0 API
PayAmount=1.17 //This field is only returned in v2.0 API
OriginAmount=0.30 //This field is only returned in v2.0 API
OriginCurrency=USD //This field is only returned in v2.0 API
SubTotalPrice=1.08 //This field is only returned in v2.0 APIhttps://<your_webhook_url>?
TxnId=7715134275512676038
OrderId=365f5Z619951c1a4b8
TotalPrice=1.17
PaymentType=237
ResultCode=0
Checksum=7ccba0ddb6792c83b68b48050fec927a
PayTaxRate=8.00 //This field is only returned in v2.0 API
PayCurrency=MYR //This field is only returned in v2.0 API
PayAmount=1.17 //This field is only returned in v2.0 API
OriginAmount=0.30 //This field is only returned in v2.0 API
OriginCurrency=USD //This field is only returned in v2.0 API
SubTotalPrice=1.08 //This field is only returned in v2.0 APINote for USD Transaction Initiation
If partners specify the payType in the Initiation request, then we will respond with the price in Local Currency.
If partners do not specify the payType, (or use payType 1 for generic DCB) then the response will not contain the price.
If partners use our payment page front-end integration, we will display the price in local currency to the user.
The API is fully backward compatible. To start using this feature, simply start sending a USD amount in the "price" parameter and the ISO Code "840" in the "currency" parameter.
USD amounts can be submitted with two decimal places, but local amounts may be rounded up to the nearest whole number. For IDN, JPN, MMR, VNM, and LAO, it will be rounded to the nearest whole number. For other countries, it will be rounded to the nearest 2 decimal places.
Channels with specified pricing requirements, such as Maxis in Malaysia, Telkomsel in Indonesia, etc.; we do not recommend using USD requests.
Last updated
Was this helpful?