Skip to content

Commit

Permalink
Merge pull request #82 from mediaopt/feature/36076-apple-pay
Browse files Browse the repository at this point in the history
#36076 added some necessaey info to paymentRequest
  • Loading branch information
majidabbasimediaopt authored Apr 17, 2024
2 parents 0891d22 + d10671b commit 141020c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paypal-commercetools-client",
"version": "0.1.9-alpha",
"version": "0.1.10-alpha",
"private": false,
"type": "module",
"license": "MIT",
Expand Down
5 changes: 5 additions & 0 deletions src/components/ApplePay/ApplePayMask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,14 @@ export const ApplePayMask: React.FC<CustomPayPalButtonsComponentProps> = (
}

const paymentRequest = {
countryCode: payConfig.countryCode,
merchantCapabilities: payConfig.merchantCapabilities,
supportedNetworks: payConfig.supportedNetworks,
currencyCode: paymentInfo.currency,
requiredBillingContactFields: ["postalAddress"],
total: {
label: "Demo",
type: "final",
amount: paymentInfo.amount,
},
};
Expand Down

0 comments on commit 141020c

Please sign in to comment.