Visanet

Aminelmutuk1
New Contributor

Visanet

Hello, My customer requests a Visanet invoice with link/QR code. How can I create this and how long does it take?

3 REPLIES 3
jenn_kh
Community Moderator

Re: Visanet

Hi Aminelmutuk1, Thank you for your question. An agent will get back to you as soon as possible. Until then, if any community member has information that may be helpful, please reply to this thread.

Aminelmutuk1
New Contributor

Re: Visanet

hello, no one has contacted me. could an employee email me because i have been waiting since wednesday.
DianaVisaPM
Visa Developer Support Specialist

Re: Visanet

Hey @Aminelmutuk1,

 

To create a VisaNet invoice with a link or QR code, you can use the Visa Direct Payouts API or the Visa Payment Gateway API. These APIs allow you to generate payment requests that can include a link or QR code for your customers to use for payment.

 

Here’s a high-level overview of how you can create a VisaNet invoice with a link or QR code:

1. Create a Payment Request: Use the Visa Payment Gateway API to create a payment request. This request can generate a link or QR code that your customer can use to make the payment.

2. Generate QR Code: Once the payment request is created, you can generate a QR code that embeds the payment link.

 

Implementation Steps:

1. Set Up Your Visa Developer Account: Sign up for a Visa developer account and get access to the Visa Payment Gateway API.

2. Create a Payment Request:
- Use the `createPaymentRequest` endpoint of the Visa Payment Gateway API to create a payment request.

Below is a simplified example of how you might create a payment request and generate a QR code:

 

```python
# START 

import requests
import qrcode

# Visa Payment Gateway API endpoint to create a payment request
payment_request_url = "https://api.visa.com/visapaymentgateway/v1/paymentrequests"
payment_request_payload = {
"merchantId": "YOUR_MERCHANT_ID",
"amount": "100.00",
"currency": "USD",
"description": "Invoice for services rendered",
# Add other required fields here
}

payment_request_headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
}

# Create payment request
payment_request_response = requests.post(payment_request_url, json=payment_request_payload, headers=payment_request_headers)
payment_request_data = payment_request_response.json()

# Extract payment link from response
payment_link = payment_request_data["paymentLink"]

# Generate QR code for the payment link
qr_code = qrcode.make(payment_link)
qr_code.save("payment_qr_code.png")

# END 
```

 

Timeframe:
- Setup and Integration: Setting up your Visa developer account and integrating with the Visa Payment Gateway API can take a few days to a couple of weeks, depending on your development resources and expertise.
- Payment Request Creation: Creating a payment request and generating a link or QR code is a real-time operation and should only take a few seconds once your integration is complete.

 

Please refer to the Visa Payment Gateway API documentation for detailed information on required fields, authentication, and other configurations.

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.