Re: How created invoice with QR code

Solved! Go to solution
MA77
Regular Visitor

Re: How created invoice with QR code

Hı.
I think I'm clumsy😂
Please help me I don't understand how to make qer codu with Invoıce yet.

MA77
Regular Visitor

Re: How created invoice with QR code

Unfortunately, not yetUnfortunately, not yet 😔
API_Products
Visa Developer Support Specialist

Re: How created invoice with QR code

Hi @MA77,

 

Please refer to the Visa Direct links provided in this community forum post's thread. For QR code, you can use the Visa Direct API product. Please refer to the Visa Direct documentation link and in particular you'll need to meet the requirements that are listed in the box with the exclamation mark. If you have questions about Visa Direct, you can contact the regional office by referring to the Visa Direct Support mailboxes provided in this forum thread.  




Thanks,

Diana H.



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

Aminelmutuk1
New Contributor

Re: How created invoice with QR code

Hi, I have the same problem, did you succeed now?

API_Products
Visa Developer Support Specialist

Re: How created invoice with QR code

Hey @Aminelmutuk1,

 

To create an invoice with a QR code for payments using Visa Direct, you will need to follow these steps:

1. Generate a Payment Link or Payment Request: Use Visa Direct API to create a payment request.
2. Generate a QR Code: Use a QR code generator to create a QR code with the payment link.
3. Create an Invoice: Include the QR code in your invoice.
4. Send the Invoice: Send the invoice to your customers.

 

Step 1: Generate a Payment Link or Payment Request

Visa Direct does not directly provide a payment link generation feature like some other payment gateways. However, you can create a payment request by integrating with Visa Direct's APIs.

You will need to register for Visa Direct and get access to their APIs. The key APIs you will use include:

- Push Funds API: To send money to a card.
- Pull Funds API: To receive money from a card.

 

Here is a high-level overview of how to use Visa Direct APIs:

```json
POST /visadirect/fundstransfer/v1/pushfundstransactions
Host: sandbox.api.visa.com
Content-Type: application/json
{
"systemsTraceAuditNumber": "451001",
"retrievalReferenceNumber": "330000550000",
"localTransactionDateTime": "2023-10-01T12:00:00",
"acquiringBin": "408999",
"acquirerCountryCode": "840",
"senderPrimaryAccountNumber": "4895142232120006",
"senderCardExpiryDate": "2023-10",
"senderCurrencyCode": "USD",
"amount": "100.00",
"recipientName": "John Doe",
"recipientPrimaryAccountNumber": "4111111111111111",
"transactionCurrencyCode": "USD",
"merchantCategoryCode": "6012",
"sourceOfFundsCode": "03",
"cardAcceptor": {
"name": "Visa Inc. USA-Foster City",
"terminalId": "365539",
"idCode": "VMT200911026070",
"address": {
"state": "CA",
"county": "San Mateo",
"country": "USA",
"zipCode": "94404"
}
}
}
```

 

Step 2: Generate a QR Code

You can use a QR code generator tool or library to create a QR code with the payment link or payment request details.

 

Example using Python

```python
# START 
import qrcode

# Replace this with your Visa Direct payment link or details
payment_link = "https://your-payment-gateway.com/pay?amount=100&currency=USD"

# Generate QR code
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=4,
)
qr.add_data(payment_link)
qr.make(fit=True)

# Create an image from the QR Code instance
img = qr.make_image(fill_color="black", back_color="white")

# Save the image to a file
img.save("payment_qr_code.png")
# END 
```

Step 3: Create an Invoice

Use your preferred invoicing software or a document editor to create an invoice. Insert the QR code image into the invoice.

 

Example using Google Docs:

1. Open Google Docs and create a new document.
2. Insert the QR code image by going to Insert > Image > Upload from computer.
3. Place the QR code in a prominent position on the invoice.

Step 4: Send the Invoice

Send the invoice to your customers via email or any other preferred method.

Example Invoice Layout
```
-----------------------------------------------------
| Company Name |
| Company Address |
| |
| Invoice Number: 12345 |
| Date: YYYY-MM-DD |
| |
| Bill To: |
| Customer Name |
| Customer Address |
| |
| Description | Quantity | Unit Price | Total |
| ------------------|----------|------------|--------|
| Service/Product | 1 | $100.00 | $100.00|
| |
| Total Amount Due: $100.00 |
| |
| Scan the QR code to make a payment: |
| [QR CODE IMAGE] |
-----------------------------------------------------
```

This will allow your customers to scan the QR code and make the payment.

 




Thanks,

Diana H.



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