Refactor GooglePay context handlers to use response currency and country.

This commit is contained in:
Pedro Silva 2023-08-30 08:39:31 +01:00
parent 2f6545aa57
commit 78d58f1a03
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
4 changed files with 22 additions and 8 deletions

View file

@ -31,10 +31,10 @@ class BaseHandler {
const data = result.data;
resolve({
countryCode: 'US', // data.country_code,
currencyCode: 'USD', // data.currency_code,
countryCode: data.country_code,
currencyCode: data.currency_code,
totalPriceStatus: 'FINAL',
totalPrice: data.amount // Your amount
totalPrice: data.total_str
});
});