paypal-sandbox

Uploading custom cart to Paypal from PHP page using POST

人走茶凉 提交于 2019-12-11 16:17:00
问题 I'm using Website Payments Standard on PayPal. So I have a custom purchase page which is essentially a list of my licences (pulled from the database): licence type A: $100 licence type B: $200 licence type C: $300 They choose one of those (radio button) then click the purchase button. This POSTs the page to my processing PHP page which gets the selected licence_id from the previous page, then uses that to select the correct licence information from the database (price, licence duration) etc.

is storing order_id via paypal payment really necessary?

你说的曾经没有我的故事 提交于 2019-12-11 15:09:18
问题 I am using paypal gateway. I am using js sdk smart payment buttons. Question 1) Turns out that when I make a payment through js, it returns me id and capture_id(id means order_id and capture_id means transaction_id ). Then I use webhooks to catch events on my back-end. Looks like it takes me lots of parsing 'links' property in it to get order_id. Is it really necessary to have order_id stored in my db? or capture id is enough to do anything? Question 2) when events arrive on my back-end,

Doesn't the SELLERPAYPALACCOUNTID work in the sandbox?

扶醉桌前 提交于 2019-12-11 14:58:25
问题 i use the SetExpressCheckout for my website. On this side I have some products. Each product has an other recipient. So I fill the parameter "PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID" $padata = '&CURRENCYCODE='.urlencode($CurrencyCode). '&PAYMENTACTION=Sale'. '&ALLOWNOTE=1'. '&PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID='.$email. '&PAYMENTREQUEST_0_CURRENCYCODE='.urlencode($CurrencyCode). '&PAYMENTREQUEST_0_AMT='.urlencode($ItemTotalPrice). '&PAYMENTREQUEST_0_ITEMAMT='.urlencode($ItemTotalPrice). '

Embedded PayPal Login Button

半世苍凉 提交于 2019-12-11 14:01:07
问题 All, I am trying to add a PayPal login button to my site based on https://developer.paypal.com/webapps/developer/docs/classic/loginwithpaypal/integration/. Currently, I am using PayPal sandbox therefore I use the static AppID "APP-80W284485P519543T" (https://www.x.com/developers/paypal/documentation-tools/quick-start-guides/paypal-apis-getting-started-guide). The following is my JavaScript code <script src="https://www.paypalobjects.com/js/external/api.js"></script> <script> paypal.use( [

SSL connect error in woocommerce though 'Force secure checkout' is disabled

戏子无情 提交于 2019-12-11 12:25:48
问题 I'm using woocommerce 2.3.13 on my development environment with paypal sandbox mode. as its not yet SSL certified so under Checkout > 'Force secure checkout' is disabled now. but on checkout page its still showing "SSL connect error" while trying to connect to paypal sandbox. Is anyone face the same issue? Thanks for help in advance. 回答1: Paypal have recently rolled out some security updates on the sandbox (production will be updated in June) https://devblog.paypal.com/upcoming-security

Paypal Permission API. GetBasicPersonalData in php

别等时光非礼了梦想. 提交于 2019-12-11 12:23:34
问题 I have received "tokenSecret" and "response token". $apiCred_user = "XXXX.com"; $apiCred_pass = "XXXX"; $accessToken = "XXXXXXXXXXXXXXKl8OlQ"; $tokenSecret = "XXXXXXXXXXXXXsRg6ULs"; $url = "https://api.sandbox.paypal.com/nvp"; $auth = new AuthSignature(); $response = $auth->genSign($apiCred_user ,$apiCred_pass ,$accessToken,$tokenSecret,'POST',$url); $authString = "token=".$accessToken. ",signature=".$response['oauth_signature']. ",timestamp=".$response['oauth_timestamp']; Using this call,

paypal webhook notification not received

南楼画角 提交于 2019-12-11 11:44:04
问题 I'm trying to get notified via webhooks when a simple payment is made, however I don't receive any request from paypal on the specified URL. Here is what I've done: I have 2 sandbox accounts: Facilitator and Buyer Create an app (sanbox mode) for the facilitator account Add a webhook URL in that app Login into sanbox.paypal.com with the sandbox facilitator username and password Generate a buy now button with a test product Paste the button code on my page and make a purchase with the sanbox

Is it possible to change only AMT using UpdateRecurringPaymentsProfile PayPal?

ε祈祈猫儿з 提交于 2019-12-11 09:38:15
问题 This question has been posted elsewhere however I have not found a specific answer yet. What I want to do is simply change the amount (AMT) of a PayPal recurring payments profile from say £55.00 to £60.00. The amount is all I want to change. I am using the below to do this: $request_params = array ( 'USER' => $api_username, 'PWD' => $api_password, 'SIGNATURE' => $api_signature, 'VERSION' => $api_version, 'METHOD' => 'UpdateRecurringPaymentsProfile', 'PROFILEID' => 'I-R159ACHCUJHF', 'AMT' =>

PayPal App works perfectly as Sandbox, Client Authentication failed on Live: list of steps to check?

假如想象 提交于 2019-12-11 09:19:08
问题 I have created my PayPal App to get payments in my website build in a PHP framework. This is server-side and I'm using PayPal REST API and PayPal-PHP-SDK library. Everything is perfect on Sandbox (tested localhost and online as well). After then, I've switched to Live mode. I've changed ClientID and SecretID of course, but the Client Authentication failed. The complete error is: {"error":"invalid_client","error_description":"Client Authentication failed"} What I've verified is that

how to enable DPRP in PayPal Sandbox account?

China☆狼群 提交于 2019-12-11 09:09:11
问题 I am calling "CreateRecurringPaymentsProfile' method to create recurring payments on CreditCard. But, I am getting 11586 "DPRP is disabled for this merchant". I have been searching through all related threads but none of them is working. I created a fresh US Business Pro account and it did not work either. Some claims that I can enable it from "Products & Services" tab but that tab does not have any "Recurring Payments" link (others does not have any related option). So, I am kinda stuck.