Android Question PayPal wrapper - how to set up?

ktlua

Member
Licensed User
I wish to know how to link my apps to PayPal payment using the PayPalWrapper.

I have set up a sandbox account at http://developer.paypal.com/developer/account

I set up some sandbox business account for testing. From PHP I can send the request for payment using the following parameters

METHOD' => 'SetExpressCheckout',
USER' => $api_username,
PWD' => $api_password,
SIGNATURE' => $api_signature,
VERSION' => $api_version,
PAYMENTREQUEST_0_PAYMENTACTION'=>'Sale',
PAYMENTREQUEST_0_AMT'=>$amount,
RETURNURL'=>HOST.'/web/paypal_express_paid.php',
CANCELURL'=>HOST.'system/pp_e/express3.php'

username, password and signature are obtained from paypal site. The others are set up by my program.

May I know how to set up these parameters using PayPayWrapper to make a request for payment.

Thank you very much.
 

DonManfred

Expert
Licensed User
Longtime User
using the following parameters
Parameters for WHAT? Post a complete code please, not just parameters...

I´m sure it will send a http-request which you can build with okhttp in b4a.

For details you need to check the paypal http rest api docs.
 
Upvote 0

ktlua

Member
Licensed User
Parameters for WHAT? Post a complete code please, not just parameters...

I´m sure it will send a http-request which you can build with okhttp in b4a.

For details you need to check the paypal http rest api docs.

I am sorry that I do not know to program PayPalWrapper as there have been little explanation and no sample code. I can send http_request to paypal. There is no problem. My problem is the use of PayPalDrapper.
 
Upvote 0

ktlua

Member
Licensed User
I wish to know how to link my apps to PayPal payment using the PayPalWrapper.

I have set up a sandbox account at http://developer.paypal.com/developer/account

I set up some sandbox business account for testing. From PHP I can send the request for payment using the following parameters

METHOD' => 'SetExpressCheckout',
USER' => $api_username,
PWD' => $api_password,
SIGNATURE' => $api_signature,
VERSION' => $api_version,
PAYMENTREQUEST_0_PAYMENTACTION'=>'Sale',
PAYMENTREQUEST_0_AMT'=>$amount,
RETURNURL'=>HOST.'/web/paypal_express_paid.php',
CANCELURL'=>HOST.'system/pp_e/express3.php'

username, password and signature are obtained from paypal site. The others are set up by my program.

May I know how to set up these parameters using PayPayWrapper to make a request for payment.

Thank you very much.

Thanks. I will try to use okHttpUtils2.
 
Upvote 0

ktlua

Member
Licensed User
However, I just realize that the okHttpUtils2 will not work as it brings the client to a web site and does not know how to return and communicate with the apps.

I repeat to make my point clearer. I am using HTTP to post a request to PayPal server to make a payment. PayPal replies with a serious of web pages for the customer to fill in (like password). After checking, PayPal will approve the payment and send us a token to complete the process. It then hand over the control to my website. (I am using Express Checkout for web). I am sure this will not work using the mobile apps.
 
Upvote 0
Top