JavaScript
A5.stripe.getEmbeddedStripeResults Method
Syntax
A5.stripe.getEmbeddedStripeResults();
Returns
- resultsError ObjectStripe Charges Object
Returns a Stripe Charges Object or an error. See {dialog.object}.getStripeResults() for more details.
Description
Returns a Stripe charge JSON object or an error after a Stripe transaction has been performed using the Process Stripe Payment Action Javascript.
Discussion
The A5.stripe.getEmbeddedStripeResults function has been added to handle a unique situation that occurs when the Stripe Checkout control is used within an embedded UX component that is reloaded after it was initially loaded. The new function may be called in the onStripeCheckoutComplete event.
Example
var e = {}; if ({dialog.object}.getStripeResults) { e = {dialog.object}.getStripeResults(); } else { e = A5.stripe.getEmbeddedStripeResults(); }
See Also