Menu
  • HOME
  • TAGS

How do I handle response data from payment gateway?

php,paypal,payment-gateway,payflowpro

In PHP this is fairly easy. Here's a function that can turn it into an array function process_response($str) { $data = array(); $x = explode('&', $str); foreach($x as $val) { $y = explode('=', $val); if(!empty($y[1])) $data[$y[0]] = urldecode($y[1]); } return $data; } As to the other data, here's an educated...

PayPal Manager account - PayPal SDK/API Limited Access - Payflow Transparent Redirect

paypal,payflowpro

I've been told that to use transparent redirect you have to have a PayPal Payments Pro account. So I created a new account on PayPal Manager and selected Payflow Pro during setup. This doesn't fix the error I'm getting but it answers the question.

Payflow reports “User authentication failed”

paypal,paypal-rest-sdk,payflowpro,payflowlink

Through trial and error, I was able to determine that the PayPal API malfunctions when the API user's password contains some non-alphanumeric characters. I solved this by making our passwords alphanumeric (only letters and numbers). PayPal Manager will not complain if you enter a password that does not completely consist...

PayFlow Pro Template A or B in Mobile

paypal,payment-gateway,payflowpro

Although they look similar they are actually different pages. PayPal auto-detects if the checkout page is being viewed from a supported mobile browser and automatically redirects to the mobile-optimized checkout page.

Show line items in Express Checkout review page

c#,.net,paypal,payflowpro

Turns out I was missing one propterty - the item cost. item.Cost = new Currency(1.01, "USD"); It's a little bit strange that everywhere else in the paypal APIs the amount is AMOUNT or AMT but for line items its COST...

How do you verify that the notification to the Silent Post URL is indeed from PayPal Payflow and not a hacker?

paypal,notifications,payflowpro,payflowlink

All valid PayPal notifications originate from 173.0.81.65. Simply ignore any notifications that don't come from this IP. The answer is hidden away in the depths of the PayPal knowledge base: https://ppmts.custhelp.com/app/answers/detail/a_id/445. More information can also be found at https://ppmts.custhelp.com/app/answers/detail/a_id/883/kw/payflow%20ip%20address...

PayPal Express Checkout useraction and paymenttype parameters in SDK

paypal,payflowpro

You attach the useraction in the URL you are redirecting to.. eg: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=<TOKEN>&useraction=commit The two PaymentTypes you have listed are the same according to the API. Also, based on this sample code you should be able to add the useraction=commit with the MerchantSDK. Line 420 shows: CurrContext.Items.Add("Response_redirectURL", ConfigurationManager.AppSettings["PAYPAL_REDIRECT_URL"].ToString() + "_express-checkout&token="...

PayPal API - Processing both one time payment and a recurring payment in a single checkout using PayFlow Pro [closed]

php,paypal,payflowpro

You can either make two separate calls to the PayFlow API (one to process the one-time payment for the paid products, and another to create the recurring profile), or you could just make a single call to create a recurring profile and include the OPTIONALTRX. When you include that you...

Payflow checkout error - “Invalid merchant information: 10002”

php,paypal,payflowpro

This error comes most probably because of the sandbox account attached to your Manager account . You need to make sure that you have attached a Business Pro sandbox account in your manager account under "Service Settings --> Set Up --> PayPal Sandbox Email address".

Paypal Payflow Transparent Redirect, SecureToken with AJAX?

ajax,paypal,asp.net-ajax,token,payflowpro

After spending a bunch of time with a Paypal engineer I've successfully figured out a solution for the Paypal's Payflow Transparent Redirect without hosted pages (have own payment page). Again, here's the documentation which, per the engineer, is pretty confusing: Payflow API Documentation. Also, the code isn't optimized as it...