paypal-rest-sdk

Paypal: Client Authentication Failed

a 夏天 提交于 2019-12-11 17:47:14
问题 Trying to take my paypal REST api site live. It works well in sandbox mode, with verified transfers. When I switch my sandbox for live client ID and secret, I get the error {"error":"invalid_client","error_description":"Client Authentication failed"} I checked and made sure that my code should go live $apiContext = new \PayPal\Rest\ApiContext( new \PayPal\Auth\OAuthTokenCredential( PP_CLIENT_ID , // ClientID PP_CLIENT_SECRET // ClientSecret ) ); // setting mode to live // https://github.com

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,

PayPal Rest API Capture AUTHORIZATION_AMOUNT_LIMIT_EXCEEDED

♀尐吖头ヾ 提交于 2019-12-11 12:13:53
问题 For Express checkout, when I create a payment with intent=authorize. after calculate shipping and tax, if the shipping + tax is greater than 15% of the original payment amount I got the error "AUTHORIZATION_AMOUNT_LIMIT_EXCEEDED". It is very common that shipping + tax exceeds 15% of the original total especially for smaller and heavy items. What will be the way to go around it? thanks, Additional info: when I look at classic PayPal express checkout's first step, It's not required to set any

Can I create a Billing Agreement with credit card (without paypal account)

跟風遠走 提交于 2019-12-11 08:13:15
问题 As per the subject. Does my customer MUST to have paypal account and login to his paypal account in order for me to create a billing agreement, or I can use credit card as payment method for a billing agreement? I am working with REST Api Thanks 回答1: It is possible. An example of the API is here: https://github.com/paypal/PayPal-NET-SDK/blob/develop/Samples/Source/BillingAgreementWithCreditCard.aspx.cs Subscriptions (recurring payments) option for direct payments needs to be also enabled in

Is PayPal REST API still lacking an equivalent of GetExpressCheckoutDetails?

ε祈祈猫儿з 提交于 2019-12-11 03:56:33
问题 We are doing a new PayPal Express integration for an ecommerce store that needs to retrieve the Billing and Shipping Address information after the user logs into PayPal to authorize the payment, but BEFORE we capture the payment. We need that information so we can create a user account in our store for them, if one does not already exist for them, and so we can properly calculate the shipping charges for the customer. The following post over a year ago implied that had not been implemented

Get details (parent payment) of a refund

左心房为你撑大大i 提交于 2019-12-11 03:07:28
问题 How is it possible to get the parent payment of a refund, which was notified to me by PayPal? I got this notification (webhook) from PayPal: { "create_time": "2015-02-20T10:56:36Z", "event_type": "PAYMENT.SALE.REFUNDED", "id": "WH-XXX-XXX", "links": [ { "href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-XXX-XXX", "method": "GET", "rel": "self" }, { "href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-XXX-XXX/resend", "method": "POST", "rel": "resend" } ],

Paypal Rest API SDK v2

谁都会走 提交于 2019-12-11 01:38:40
问题 Paypal recommends using their v2 version of the rest API for Orders and Payments processing. Their documentation is written as per the v2 APIs. The SDK for V2 APIs is called Checkout SDK: https://github.com/paypal/Checkout-Java-SDK I need to integrate both normal and recurring payments via Paypal. It seems that the Checkout SDK does not support recurring payments APIs(CreatePlan and CreateBillingAgreement). Do I need to include both v1(Rest API SDK) and v2(Checkout SDK) for the same if I need

How to get Sale Id of executed PayPal payment via REST SDK

十年热恋 提交于 2019-12-10 19:35:30
问题 I am using PayPal's REST SDK for java: https://github.com/paypal/PayPal-Java-SDK After executing a payment via the SDK, if someone should choose to refund a payment, I wish to execute the refund via the SDK. First, I get the details of the payment using the Payment.get(APIContext, PaymentId) method. Then, to execute the refund I need the Sale Id. So I retrieve this from the Payment Object retrieved in the previous step with the following call: String saleId = ppPayment.getTransactions().get(0

PayPal REST API order workflow: Payment -> Sale -> Webhook?

自闭症网瘾萝莉.ら 提交于 2019-12-09 11:52:38
问题 I am trying to integrate the PayPal REST API into my Symfony 2 web app but I find hard to understand how exactly the complete workflow looks like: The PayPal docs describe the following steps to accept a payment. One can use the PayPal Playground to simulate these steps: Get an access token Create a Payment object by querying the API Redirect the user to the approval url received in the Payment response After the user approved the payment on the PayPal page, he is redirected back to my page,

Generating signatures for PayPal authentication header in C#

六月ゝ 毕业季﹏ 提交于 2019-12-08 18:03:25
My objective is to send an invoice on behalf of a 3rd party merchant to another paypal account. I am using the permissions service to successfully obtain permissions, resulting in an access token and associated secret. However, I don't understand how to use the access token and associated secret to build the headers when creating/sending the invoice. I am using the C# .NET Invoicing SDK to communicate with the Invoicing Service API . Here is the code I am using to create and send an invoice. RequestEnvelope envelopeRequest = new RequestEnvelope(); envelopeRequest.errorLanguage = "en_GB"; List