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
Shopify Staff
2873 312 820

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
Shopify Staff
2873 312 820

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