cocoastorm / vue-paypal-checkout

A simple Vue.js wrapper component for paypal-checkout
MIT License
153 stars 67 forks source link

implemented details prop to allow adding tax and subtotal information to the amount #48

Closed Connum closed 6 years ago

Connum commented 6 years ago

Usage example:

<PayPal
  :amount="paymentAmount"
  :details="paymentAmountDetails"
  currency="USD">
</PayPal>
paymentAmount: function () {
  return this.cartAmount
},
paymentAmountDetails: function () {
  return {
    tax: this.cartAmountTaxes,
    subtotal: this.cartAmountSubtotal
  }
},