I need to create and send, via email and WhatsApp, a payment link to the customer (I already have the integration with the payment gateway). I want to integrate it with my system that collects customer information such as name, email, etc.
Hello Christiano,
The implementation of such a method would depend on your gatewayās settings, so my recommendation would be to work with them to understand how this information is sent to VTEX.
However, in general, my recommendation would be to modify the vtexcommerce-new-order email template to include the payment link, using a variable that would be sent by the gateway, as outlined in our Transactional Emails documentation.
Let me explain better. I want to integrate my system, in which I collect customer information (name, email, phone, address, etc.) and the service the customer is purchasing. In this case, the service is unique and has a fixed price (only one SKU). Through integration with VTEX, I want to send the customerās data from my system to VTEX, and VTEX, based on that information, should send a payment link to the customer. The customer will access that link, opening a payment environment, and will then complete the payment for the purchased service. I already have an existing process with VTEX for another type of operation, and it is already linked to the payment gateway (Pagar.me) and anti-fraud.