PayPal Insights SDK - Amount

DOCS

Last updated: Aug 15th, 8:07am

Amount

The currency and amount of the cart after checkout, in units of the specified currency parameter. Refer to the amount object reference.

  • type: object
  • props:
    • currency
      • type: string
      • required: true
      • example value: "USD"
      • description: Three letter string sprecifying the currency of the transaction.
    • value
      • type: stringnumber
      • required: true
      • example value: "10.50" | 10.50
      • description: The numeric amount of the transaction.

Example

    1{
    2 currency_code: "USD",
    3 value: "10.50"
    4}