The Push Cash button enables the integration of a payment entry point into your web application.
By using the PushJS package, you can render a customizable button that initiates the Push Cash payment flow.
Define a callback function that executes when the user clicks the button. This function should return a promise that resolves to a URL string, which the SDK will use to redirect the user.
Copy
push.setCallback(async function() { // Your logic to invoke your backend to create a payment intent and return the URL for the payment session const intentUrl = await createPaymentIntent(); return intentUrl;});