top of page

Forum Comments

GoCardless custom code on wix
In Velo (Wix Code)
Pierre Vinguedassalom
Jul 10, 2024
Yes, it's this video that I used for integrated Gocardless, I want to add a webhook when I select "Gocardless Payment" the redirection is done to an url generated by the Gocardless payment hosting page File Gocardless-config.js import * as paymentProvider from 'interfaces-psp-v1-payment-service-provider'; /** * This payment plugin endpoint is triggered when a merchant provides required data to connect their PSP account to a Wix site. * The plugin has to verify merchant's credentials, and ensure the merchant has an operational PSP account. * @param {import('interfaces-psp-v1-payment-service-provider').ConnectAccountOptions} options * @param {import('interfaces-psp-v1-payment-service-provider').Context} context * @returns {Promise} */ export const connectAccount = async (options, context) => { const { credentials } = options; return { credentials } }; /** * This payment plugin endpoint is triggered when a buyer pays on a Wix site. * The plugin has to process this payment request but prevent double payments for the same `wixTransactionId`. * @param {import('interfaces-psp-v1-payment-service-provider').CreateTransactionOptions} options * @param {import('interfaces-psp-v1-payment-service-provider').Context} context * @returns {Promise} */ export const createTransaction = async (options, context) => { console.log("options", options); const { merchantCredentials, order } = options; const lineItems = order.description.items; return { "pluginTransactionId": "e89b-12d3-a456-42665", "redirectUrl": "https://dashboard.stripe.com/login?locale=fr-FR" } };
Content media
0
Pierre Vinguedassalom

Pierre Vinguedassalom

More actions
bottom of page