Paypal iOS SDK and php - php

How to process in server when payPalPaymentViewController:didCompletePayment completion in iOS paypal SDK. Please give me a sample php code to process completedPayment.confirmation details. I am not familiar with php. So please give me a guideline to process paypal request in php server. I googled a lost but i can't find any simple solution to process paypal iOS request in php

You can find sample code (cURL) on how to verify a mobile payment here. Once you validate that the payment is completed, you can find other RESTful sample calls here to do the server side integration. You can select the appropriate programming language from the top of the page.

Related

PayPal REST API Authorise Payment PHP

I've been searching the web for a solution to this or just some decent documentation but I am at a loss.
I am trying to authorise payments made from an app using Paypal Cordova SDK which is similar to PayPal IOS SDK.
I have a server running PHP 5.4 and I have installed using composer the PayPal REST API SDK onto my server. I need some help or a small sample script to show me how to authorise a payment made to my server (For such a big company PayPal's documentation is really hard to navigate, search or use.).
My other question is where do I put the link to authorise payments (IP/authorise.php). Do I attach it to my developer portal on PayPal some how?
Many Thanks

Getting Started - Adaptive Parallel Payments

I need some help getting started with PayPal Adaptive Payments, it's the first time I'm using PayPal and I had no idea it would be this difficult, well at least for me.
I found this API integration code I'd like to use:
https://devtools-paypal.com/guide/ap_parallel_payment/php?interactive=ON&env=www
I have downloaded the: PayPal PHP Adaptive Payments SDK
Basically I have an Index.php file with the code I found on the API Integration, what do I need to include on the index.php from the SDK to get this sample code running and working?
Any help is highly appreciated!
Thanks.
Take a look at some of the samples from the GitHub repo and you can see what needs to be included. Here's a parallel payments sample.
It looks like all you really need is...
require_once('../PPBootStrap.php');
require_once('../Common/Constants.php');
On a separate note, you may be interested in taking a look at my PHP class library for PayPal. It's a lot easier to work with than PayPal's SDK, and I know a lot of PayPal integration specialists who actually prefer mine over their's as well.

Programmatically Settling a request by Amazon's REST API

I am (developer) using amazon marketplace payment for transaction. For this i am using marketplace fee enabled button (http://docs.aws.amazon.com/AmazonSimplePay/latest/ASPGettingStartedGuide/nomktplc.html).
I want charge a sender's card at a later point so I am using settle (advance feature of amazon marketplace fee enabled button). To settle the transaction I am trying to use this (found at http://docs.aws.amazon.com/AmazonFPS/latest/FPSMarketplaceGuide/Settle.html)
" https://fps.sandbox.amazonaws.com?Action=Settle&AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&ReserveTransactionId=14GKD9GE66FAA63E6O6B2JDPZKN53LZ7F22&SignatureMethod=HmacSHA256&SignatureVersion=2&Signature=SJJLsIBghi7VIycBjX7c3hnfgZ%2FBvZbzqLtAZXDL8ys%3D&Timestamp=2009-10-06T07%3A53%3A11.750Z&TransactionAmount.CurrencyCode=USD&TransactionAmount.Value=1&Version=2008-09-17 "
My question regarding this request is
How should I use it.
From where should I call this - the browser or as a normal api call.
If it is done by api then what steps should I follow?
I made this call directly from the browser but it is always showing
'SignatureDoesNotMatch' error.
Please suggest what i should do? Any help will be highly appreciated.
The Amazon Simple Pay solution you are using gives you a very simple HTML integration. The browser does the magic here.
The Amazon Flexible Payment System (FPS) however is an API which is designed to be used by server side code (even though it could be used by JavaScript). You will have to create and properly sign requests to automate this integration. This is considerably more complex than just putting an ASP snippet into your page. I suggest you start here:
What Is Amazon FPS <- good starting point
FPS Sandbox <-- a browser playground for FTP calls

Using Paypal Express Checkout in appcelerator titanium

I am developing a mobile commerce application in Appcelerator Titanium and using Paypal as my payment gateway. I am using the Paypal's Express Checkout mechanism and doing all the Paypal interaction stuff in php scripts and calling those scripts through xhr object. My php scripts are working perfectly in the browser and payment is done displaying the thank you message, BUT when I try to call the php scripts from the app it redirects to paypal sandbox page displaying the message "Please login to use sandbox features" and nothing else.I am stuck here and can't do any advancement. It is to be noted that I am already logged in to sandbox through my sandbox account? I've spent so much time on searching this problem but couldn't get it working. Please help me what I am doing wrong here? I really need your help. Any help in this regard will be appreciated. Thanks in advance.
Have you tried using the PayPal module on the Appcelerator Marketplace? It's much easier to integrate and it's free:
https://marketplace.appcelerator.com/apps/780?693288467

WePay payment gateway integration in PHP

I want to integrate WePay payment gateway for my site. I have download SDK from www.wepay.com and integrate it as the API tutorial given in WePay, i am done till account creation and API call, but stuck in checkout page. My checkout page goes blank, i am not able to find what the actual problem is?
If anybody is familiar with WePay payment gateway then, please help me out from this problem.
I would suggest you to start with trying to get a decent error message. You can check what they mean here. Use the developer tools like the network tab in Chrome, or Firebug to see how the requests are send and what errors are sending back. An API call is based on an HTTP request so is easy to monitor. It can be that the user is not good or the token or a million other things.

Categories