Skip to content

0.109.0

Compare
Choose a tag to compare
@jonathajones jonathajones released this 10 Oct 19:37
· 45 commits to main since this release

Included in this release:

  • Adding a new interface to get details about an order through Approval.actions. This interface only supports orders created with the orders/v2 API, and integrating with this interface may look something like this:
// Wherever you define the `onApprove` callback
      ... , 
      onApprove: { approval in
        approval.actions.getOrderDetails { details, error in
          // record the details of your order here
        }
      },
      ...

The details object will give you insight into the Payer, the array of PurchaseUnits, and a raw JSON that includes other fields that do not have types added yet.

Also included in this release:

  • Accessibility improvements
  • Bug fixes