Skip to main content
See the changes to the Frontend SDK. Make sure to download the latest version.
Latest

Error codes for fatal failures

Release notes:
  • New error object present on onPaymentIntentFailed and onOrderCompletedFailed for fatal failures. For example, when the checkout session fails to open (onPaymentIntentFailed), or when there’s an issue with the Grant Award Callback, such as an invalid link (onOrderCompletedFailed).
  • Added a Troubleshooting article that lists the possible error codes returned in the error.code parameter of those event callbacks.
  • Clarified when onClose is triggered.

Price localization guidance

Release notes:
  • Removed the article on managing and retrieving price points from the the SDK, as fetching price points from the frontend using the getPricePoints function is no longer recommended. Instead, retrieve localized prices on your backend using the Price Points API, then pass them in the priceDetails property when creating a checkout session.
  • You can also use the Price Points API to localize prices displayed in your external web store, not only when creating a checkout session.
If you continue to fetch price points from the frontend, you’re responsible for validating prices before passing them to the checkout session.

Frontend SDK Version 3.0.0

Release notes:
  • Combined all supported platforms into a single article.
  • Removed the AppchargeCheckoutInit component.
  • Moved the Checkout translations and price localization instructions to their own designated articles.
  • Removed sessionToken and checkoutToken properties from the AppchargeCheckout component.
  • Changed the checkoutUrl property value from url to parsedUrl in the Create Checkout Session API.

ReactJS Version 3.0.0

Changed publisherToken (optional) to checkoutToken (mandatory).

VueJS Version 2.0.0

Changed publisherToken (optional) to checkoutToken (mandatory).

Angular Version 2.0.0

Changed publisherToken (optional) to checkoutToken (mandatory).

JS 2.0.0

Changed publisherToken (optional) to checkoutToken (mandatory).

VueJS Version 0.1.13

First version.

VueJS Version 1.1.0

Added a new getPricePoints function to retrieve the localized price points for the individual device/user running the Appcharge Checkout SDK.