Creates a Venmo one-time payment session for processing payments through Venmo.
Configuration options for the Venmo payment session
A session object that can be used to start the payment flow
Creates a Venmo save payment session for storing payment methods for future use.
Configuration options for the Venmo save payment session
A session object that can be used to start the vault setup flow
This method allows you to configure a Venmo vault setup flow where a buyer can save their Venmo account for future transactions without a purchase.
const venmoSaveSession = sdkInstance.createVenmoSavePaymentSession({
onApprove: async ({ vaultSetupToken }) => {
console.log('Venmo payment method saved:', vaultSetupToken);
},
onCancel: () => {
console.log('Venmo save payment canceled');
},
onError: (data) => {
console.error('Venmo save payment error:', data);
}
});
const createVaultSetupToken = () =>
Promise.resolve({ vaultSetupToken: 'vault_setup_token' });
await venmoSaveSession.start(
{ presentationMode: 'auto' },
createVaultSetupToken()
);
Interface for managing Venmo payment operations within the PayPal SDK.
Remarks
This interface provides methods for creating and managing Venmo payment sessions, allowing merchants to integrate Venmo as a payment method in their applications.
The VenmoPaymentsInstance enables seamless integration with Venmo's payment flow, providing a secure and user-friendly way to process payments through the Venmo platform.