What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

shopify_payments receiptJson in cents

Solved

shopify_payments receiptJson in cents

sasha17
New Member
6 0 0

Hi, I noticed that GraphQL receiptJson data for shopify_payments are in cents unlike for other payment methods. Is there any way to change them to euros? Or change other payment method receipts to cents? So we have all receipts in the same units

Accepted Solution (1)

Liam
Community Manager
3108 344 895

This is an accepted solution.

Hi Sasha,

 

Unfortunately, there is no built-in way to directly change the units of the receiptJson data in GraphQL responses or to standardize all receipts to a specific unit like euros within the API itself. If you want to standardize everything to euros, you would need to convert the payment amount from cents to euros within your own app.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Reply 1 (1)

Liam
Community Manager
3108 344 895

This is an accepted solution.

Hi Sasha,

 

Unfortunately, there is no built-in way to directly change the units of the receiptJson data in GraphQL responses or to standardize all receipts to a specific unit like euros within the API itself. If you want to standardize everything to euros, you would need to convert the payment amount from cents to euros within your own app.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog