how to get Apihost and ApiPath for CIM payment gethway method..? - php

I want to need configure the Authorize.net - CIM Payment Get-way in my x-cart Platinum V 4.5.5 sites.
Now, Xpayments Modules are NOT support for my x-cart platinum Version 4.5.5.
So, i am start the Customization for Authorize.net - CIM Payment Get-way.
We have now use Test mode.
We have already this $g_loginname , $g_transactionkey
But,this $g_apihost and $g_apipath not available ,
so how to get Apihost and ApiPath for CIM Payment Getway method
https://developer.authorize.net/testaccount/
$g_loginname ='xxxxxxxxxxxx';
$g_transactionkey ='xxxxxxxxxxxxx';
$g_apihost = "apitest.authorize.net";
$g_apipath = "/xml/v1/request.api";
thanks

The API host will depend if you're using the developer server or production server.
Development server: apitest.authorize.net
Production server: api.authorize.net
The API path is always /xml/v1/request.api

Related

Stripe CLI Connection to remote host denied

I created the localhost alias webhook on the stripe dashboard, in my command promt i ran the listener fro Stripe CLI
C:\MAMP\htdocs\bla> stripe listen --load-from-webhooks-api --forward-to https://bla.dev.com --skip-verify
> Ready! You are using Stripe API Version [2022-08-01]. Your webhook signing secret is whsec_XXXXXXXXXXXXXXXXXXXXXXXX55 (^C to quit)
when i test the payments i get this in my command prompt
2022-12-14 15:16:25 --> checkout.session.completed [evt_1MEpCWDT9pjYXXXXX]
2022-12-14 15:16:25 <-- [200] POST https://bla.dev.com/frontend/web/payment/stripe/endpoint/ [evt_3MEpCKDT9pjYPnbXXXX]
2022-12-14 15:16:25 --> charge.succeeded [evt_3MEpCKDT9pjYXXXXXX]
2022-12-14 15:16:26 <-- [200] POST https://bla.dev.com/frontend/web/payment/stripe/checkout/endpoint/ [evt_1MEpCWDT9pXXXXX]
but when i check my stripe dashboard, it shows this error
Connection to remote host denied (please contact support at https://support.stripe.com/contact/)
The url https://bla.dev.com/frontend/web/payment/stripe/endpoint/ is valid Alias, when i type it into browser i get a 405 error, because it only allows POST
Any idea how to fix this? it worked before, not sure what broke.
Forwarding the events in CLI to Webhook URL and setting Webhook URL in Dashboard are two different locations to Stripe and the event will be sent to both.
Forwarding the event from CLI goes through: Stripe -> local -> Your
webhook URL
Setting Webhook URL in Dashboard has events goes through: Stripe -> Your webhook URL
With Connection to remote host denied, it's likely that your Webhook URL is not publicly accessible. Common reason can be that the domain is not accessible from external and only works in your location machine.

How do Integrate eWay Payment System in PHP

I have followed the document site https://eway.io/api-v3/ to integrate the Payment system into my PHP application. And I run the command composer require eway/eway-rapid-php from terminal in the application. After that I load autoload.php.
Now I want to send customer into eWay payment site for choose payment method(paypal, CC) as well as paypal/CC information. So that customer can feel that they are paying by eWay payment gateway. I have the following code into my controller method:
$apiKey = '5XwiMIQ3EBkSlP5XwiMIQ3EBkSlP5XwiMIQ3EBkSlP...................';
$apiPassword = '12222......';
$apiEndpoint = \Eway\Rapid\Client::MODE_SANDBOX; // Use \Eway\Rapid\Client::MODE_PRODUCTION when you go live
$client = \Eway\Rapid::createClient($apiKey, $apiPassword, $apiEndpoint);
$transaction = [
'RedirectUrl' => 'http://www.eway.com.au',
'CancelUrl' => "http://www.eway.com.au",
'TransactionType' => \Eway\Rapid\Enum\TransactionType::PURCHASE,
'Payment' => [
'TotalAmount' => 1000,
]
];
$response = $client->createTransaction(\Eway\Rapid\Enum\ApiMethod::RESPONSIVE_SHARED, $transaction);
It's returning the "Error connecting to Rapid gateway" | error code S9992
Also I followed the url https://github.com/eWAYPayment/eway-rapid-php.
Do I miss anything? Would you please help me out?
Most of the time a S9992 connection error is due to an incorrect CA bundle, which prevents SSL verification from working correctly. There are a number of questions with solutions already on SO, like this one.
You can confirm the issue by enabling logging in the eWAY PHP SDK, this gist has some examples.
I have had the exact same Eway S9992 issue using XAMPP on Mac OSX. I managed to fix the issue by downloading the latest CA bundle from here:
https://curl.haxx.se/ca/cacert.pem
Saving it to my /Applications/XAMPP/etc/ folder then editing my XAMPP/etc/php.ini file and updating the path to the openssl.cafile:
openssl.cafile=/Applications/XAMPP/etc/cacert.pem
Restarted Apache and it worked a treat!

Wechat : Sandbox API config Failed

Hi please support to troubleshoot the below error in Wechat Sandbox API Config:
I am integrating Wechat API in PHP application. I have created a test account in Wechat Sandbox API. But when configuring the API with URL and token its shows "Unable to configure".
When checking the ajax response it throws : {"errcode":-106,"errmsg":"token check fail"}
Thank you.
I got the "Unable to configure" message when testing the Getting Started wiki sample too. Trying to reach wx_sample.php returned a 500 Internal Server Error.
It was fixed after changing the owners for my directory and file, after that the token could be set in the sandbox - 'API Config'.

How configure Paypal Express Checkout in Sylius?

I've started a new project with Sylius and I'm trying to make an order trying to pay it with paypal. I've changed my paypal account as premium user to get my username, password and signature. Then I've configured the parameters.yml file adding those datas.
contexts:
paypal_express_checkout:
paypal_express_checkout_nvp:
username:
password:
signature:
sandbox: true
But when I choose paypal as a payment option I get this:
Is something else what I have to configure?
P.S. The version of Sylius is 0.11.0-dev
If you are using the live Credentials of paypal please set the sandbox as false in parameters.yml file ... it will help you ...
because if sandbox is true then paypal only allow the Test mode payment

L_ERRORCODE0: 10501 while connecting to paypal do direct

We are trying to make a transaction using the paypal API for do direct.We encounter the following error when we submit the details.Went through various links and questions,and everyone suggested to activate the Website Payments Pro for example here.
But,if I check my account there is no such section on the left and neither do I have Website Payments Pro option anywhere.
PayPal API Error
The PayPal API has returned an error!
TIMESTAMP: 2013-04-03T06:36:34Z
CORRELATIONID: d0f6f7281495d
ACK: Failure
VERSION: 98.0
BUILD: 5479129
L_ERRORCODE0: 10501
L_SHORTMESSAGE0: Invalid Configuration
L_LONGMESSAGE0: This transaction cannot be processed due to an invalid merchant configuration.
L_SEVERITYCODE0: Error
AMT: 200.00
CURRENCYCODE: USD
I am not sure if there is any other solution,so would like any help from the members on it.Currently working with a sandbox account for testing.API version I am working on is 98.0
This error means that Website Payments Pro is not enabled. I have modified the account and added pro on to it. Please try running another test and see if it goes through now.

Categories