Browse Source

docs(payments-plugin): Fix Braintree paypal sample code

Michael Bromley 2 years ago
parent
commit
5dc90af52c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/payments-plugin/src/braintree/braintree.plugin.ts

+ 1 - 1
packages/payments-plugin/src/braintree/braintree.plugin.ts

@@ -101,7 +101,7 @@ import { BraintreePluginOptions } from './types';
  *       // Braintree account.
  *       paypal: {
  *         flow: 'checkout',
- *         amount: order.totalWithTax,
+ *         amount: order.totalWithTax / 100,
  *         currency: 'GBP',
  *       },
  *     }),