Skip to content

Commit

Permalink
Fix the issue of GooglePay not showing in shortcode (#493)
Browse files Browse the repository at this point in the history
* Added the missing quotes around the value of totalPriceStatus to resolve GooglePay not showing issue.

* Fix test
  • Loading branch information
aashishgurung authored Nov 26, 2024
1 parent 5163378 commit 82d4838
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/gateway/class-omise-payment-googlepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private function google_pay_button_scripts() {
merchantId: '" . $this->googlepay_config['merchant_id'] . "',
},
transactionInfo: {
totalPriceStatus: " . $this->googlepay_config['price_status'] . ",
totalPriceStatus: '" . $this->googlepay_config['price_status'] . "',
currencyCode: '" . $this->googlepay_config['currency'] . "',
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function google_pay_button_scripts()
merchantId: '',
},
transactionInfo: {
totalPriceStatus: NOT_CURRENTLY_KNOWN,
totalPriceStatus: 'NOT_CURRENTLY_KNOWN',
currencyCode: 'thb',
},
}
Expand Down

0 comments on commit 82d4838

Please sign in to comment.