Re: Payment Processing

Solved! Go to solution
acme
Helper

Payment Processing

I have integrated visa checkout (sandbox) on my websit,, but having some queries regarding it,,

1) After visa checkout  lightbox success response (encrypted payload) how do I process my payments(Api details)

2) Where do find out my transactions on sandbox account

5 REPLIES 5
API_Products
Visa Developer Support Specialist

Re: Payment Processing

Hey @acme,

 

I'm happy to help answer your question. Please see my inline responses to your questions below. Please let us know if you have further questions.

 

1) After visa checkout lightbox success response (encrypted payload) how do I process my payments(Api details)

It would be necessary to include the updatepaymentinfo, here are the steps:
 
Step 1- Visa Checkout button is added in cart page (and/or payment page) using JavaScript. In this moment V.init is started with amount, currency, ApiKey, etc.
 
Step 2- Merchant will receive the encrypted payment details and decrypt to get full account information. The account information is used to process payments using merchant standard process.
 
Step 3- Once the order is approved, the merchant needs to send the Update Payment information to Visa. There are two options to do so:
 
a. Send an API call to update the payment
 
b. Create a pixel to update Visa Checkout with transaction information
 
I've attached the guide to follow, and you can start on page 8-1.

 

2) Where do find out my transactions on sandbox account

 

Visa Checkout is simply used to obtain payment information, not process transactions: any transaction history would be monitored through their Payment Gateway after they process the payments using the payment information provided via Visa Checkout.

 

Once you have received the payload of customer data using Visa Checkout, you will complete a transaction by sending a request to your gateway/processor using your established payment flow. Ultimately, your transactions will be credited to your merchant acquiring bank. Visa Checkout works together with a merchant service provider (also known as an acquiring bank or "acquirer"), processor, and gateway to complete a transaction. A merchant account—aka merchant services account—establishes a business relationship that allows your company to accept debit and credit card payments to a bank account in exchange for processing fees.  
 
Typically, a Merchant Service Provider is a bank or financial institution that allows a merchant to accept credit or debit card payments, and assigns a payment "processor" for this purpose. Your payment gateway will allow you to securely authorize payments before sending to the processor, and usually offers transaction review functionality via a user interface.

 




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.

acme
Helper

Re: Payment Processing


can you please help to integrate following point (in php)

b. Create a pixel to update Visa Checkout with transaction information
API_Products
Visa Developer Support Specialist

Re: Payment Processing

Hey @acme,

 

To integrate the pixel to update Visa Checkout with transaction information in PHP, you will need to use the Visa Developer platform. Here are the steps you can follow:

 

1. Sign Up and Access Visa Developer:
- Create an account or log in to the Visa Developer at https://developer.visa.com portal.
- Create a new project in the dashboard to get your API key and other credentials.

 

2. Get API Credentials:
- Obtain your API Key, Shared Secret, and other necessary credentials from the dashboard.

 

3. Visa Checkout Integration:
- Follow the Visa Checkout integration guide https://developer.visa.com/capabilities/visa_checkout/docs.

 

4. Set Up PHP Environment:
- Ensure you have PHP installed and set up on your server.
- Install cURL for making API requests if not already installed.

 

5. Create a Pixel to Update Transaction Information:

Here is a sample PHP code snippet to integrate the update transaction information pixel:

```php
<?php
// START 
$apiKey = 'YOUR_API_KEY';
$sharedSecret = 'YOUR_SHARED_SECRET';
$transactionUrl = 'https://sandbox.api.visa.com/visa_checkout/v1/transactions';

$transactionData = array(
'transactionId' => '1234567890',
'amount' => '100.00',
'currencyCode' => 'USD',
'status' => 'Completed'
);

$headers = array(
'Content-Type: application/json',
'Authorization: Basic ' . base64_encode($apiKey . ':' . $sharedSecret)
);

$ch = curl_init($transactionUrl);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($transactionData));
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

if ($response === false) {
die('Error: ' . curl_error($ch));
}

echo 'Response: ' . $response;
// END 
?>
```


Replace `'YOUR_API_KEY'` and `'YOUR_SHARED_SECRET'` with your actual API credentials. This code snippet sends a POST request to Visa Checkout's transaction endpoint with the transaction details.

 

Make sure to handle the response appropriately and implement proper error handling as per your application's requirements.

 




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.

aceglobal
Newbie

Re: Payment Processing

HELLO 

 

CAN I GET AN ASSISTANCE FROM YOU TO BUILD MY ACCOUNT AS IN ABSENCE OF OUR  IT DEVELOPPER IM STOKE CAN YOU SUPPORT ME TO ACTIVATE MY ACCOUNT 

acetradingcorps@gmail.com

API_Products
Visa Developer Support Specialist

Re: Payment Processing

Hey @aceglobal,

 

To activate your Visa Developer Portal (VDP) account, please email Visa Developer Support at developer@visa.com to request the activation. 




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.