Notification URL using authorize.net ARB - php

I am trying to integrate authorize.net payment gateway in my e-commerce based website. The payment is recurrent, so I am using Authorize.net Automated Recurrent Billing (ARP) API here : http://developer.authorize.net/api/arb/
Now, I would like to know if it is possible to configure the notification url in the API ?
I read, that I can configure the silent post URL in the account settings here :
https://sandbox.authorize.net/UI/themes/sandbox/merch.aspx?page=settings&sub=adcsilent&xhtml=ADCSilent-settings&operation=get
I am trying to set the notification URL in the API iteself.
Thanks

You cannot set it in the API call. It can only be set in the account settings.

Related

Stripe in Laravel and Mobile

I am working on a project about payments with stripe, I have done the Api for mobile with Laravel. I have also done a admin panel to watch and manage the data of the mobile. Now what I need to do is set payments for mobile stripe. Can u help me on the idea now, do i need to create Api for mobile to make payments like on a website stripe payments or mobile can use stripe api and just post me the data for 'user_subscriptions' and than this data can be watched by my admin panel.
Thanks in advance for your time if you stop by!
You can use Webhooks for this for example once a payment is done Stripe Server will automatically call a API on your server with all the necessary data.

Magento 2: How to change Payment Action Method on the fly in Paypal Express

I have already created Paypal/Developer/Sandbox Account. Already got API Credentials.
Downloaded PHP SDK http://paypal.github.io/PayPal-PHP-SDK/
Referring: https://developer.paypal.com/docs/api/
https://devtools-paypal.com/guide/expresscheckout/php?interactive=ON&env=sandbox
I have already done Sandbox One Transaction with Authorize Method using my PHP Script.
What i have to achieve. I need to get Authorize Payments, Convert "Authorize" payments to "Capture/Sale" Method & Notify Customer & Admin As well.
How to get Authorization Id?
By referring above document i need to use 3 Web Services
Get details of an authorized payment
Capture an authorized payment
Get details of a captured payment
Already have Transaction ID of "Authorize" Payment.
Please provide the steps to follow & if any example already available then please share
Need to integrate this functionality in Magento 2
[UPDATE]
I have changed my API Sandbox Credentials in PHP SDK in PayPal-PHP-SDK-master\sample\bootstrap.php file.
From sample/payments/AuthorizePayment.php i will get Authorized Payment with ID: PAY-0TV39791XXX02404VK7XD32I & it works fine.
When i input my Transaction Id it gives
{"name":"INVALID_RESOURCE_ID","message":"Requested resource ID was not
found.","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#INVALID_RESOURCE_ID","debug_id":"1f2b08ce88633"}
My Sandbox Transaction Id is 3AA32794KF48247AA. So question is how to convert your Transaction Id in to Payment Id?
https://magento.stackexchange.com/questions/138579/magento-2-change-paypal-action-method-on-the-fly
Below is the reply from Paypal
Transaction id can be generated after REST API execute payment,
Classic API [NVP/SOAP] DoEC API or normal button payment completion.
It will never work to reverse the search to find the Payment Id.
If you have paymentId, you can get details of authorized payment in this way:
$payment = Payment::get( $paymentId, $apiContext );
For all propeties of payment class take a look this - Payment.php
To change Sandbox/API Credentials edit the bootstrap.php in your project.
UPDATE
You don't need to use AuthorizePayment.php. Istead, do the following:
Create payment and get the url for authorization (your website side).
Print the url for authorization (your website side).
Cutomer follow the authorization url and go to PayPal and authorize the payment (PayPal side).
PayPal returns customer to your website with the paymentId (PayPal side).
Grab the paymentId and execute the payment (your website side).

PayPal Rest setting notfyURL when creating a billing plan

Is it possible to specify the notify-url for a billing plan when creating it? I am using the PHP Rest SDK 1.7.4.
I did read somewhere that it is possible to do this in the merchant preferences, I have tried this but get the response:
"VALIDATION_ERROR","details":[{"field":"merchant_preferences.notify_url","issue":"Field is invalid in a request."}]
Is the recommendation to do this out of date like most of the information about using PayPal?
How can I get a cancellation of a billing agreement to notify a PayPal IPN handler (without setting the IPN address in the PayPal UI)? I don't want to use webhooks.
https://github.com/paypal/PayPal-PHP-SDK/issues/236
I think it don't supported yet~

Auth.net payment gateway similar to paypal

I have below query.
We are using authorize.net payment gateway for our website. As per our internal company policy
we don't want user to enter their card details on our website, we want them to directly transfer them to authorize.net website and provide all the details(credit cardno,expiry date etc) there similar to paypal.
Does anybody have idea if this can be done.
Thanks.
Authorize.Net offers the Simple Integration Method which is the equivalent of Paypal's hosted forms.

Authorize.net ARB using SIM

Hi i wants to create a ARB Credit card capture page using Authorize.net SIM(Server Integration Method). can any body help me out to solve this problem in zend framework.
You can't do that. You need to access the ARB API directly to set up a subscription through ARB. You can't do it through SIM.

Categories