paypal-rest-sdk

Paypal REST API error: Duplicate Transaction and Duplicate Invoice ID

☆樱花仙子☆ 提交于 2019-12-13 06:16:51
问题 About 2-3 weeks ago I added PayPal payment processing to my site and it worked like a charm with no problems. Now I've come back to the project to tweak the code. I haven't touched the Paypal code that I finished 2-3 weeks ago, and I tried to pay an invoice. I am currently running this in sandbox. The error I am getting is a duplicate transaction, duplicate invoice id. However each invoice ID is unique to each invoice created so I don't see how that could even be an issue (let alone I didn't

PayPal REST API (PHP SDK) successful transactions not showing in sandbox mode, showing in live mode

百般思念 提交于 2019-12-12 14:33:15
问题 I'm using the Paypal PHP REST API SDK, following exactly the samples provided by PayPal here to CREATE and CAPTURE an order. The steps are: Create an order and retrieve the express checkout URL ( http://paypal.github.io/PayPal-PHP-SDK/sample/doc/payments/OrderCreateUsingPayPal.html ). Enter the retrieved URL, login to my PayPal's sandbox buyer account, and approve the payment. This redirects me to the success URL. Execute the order ( http://paypal.github.io/PayPal-PHP-SDK/sample/doc/payments

Payment error: PayPal error: Invalid request. See details. (VALIDATION_ERROR) Paypal

守給你的承諾、 提交于 2019-12-12 10:43:17
问题 I'm working with PayPal recurring payments in my project. And I want to give one free trial for some amount of time period, and initial order total should be zero, once free trial has completed the actual amount of order will be deducted from account. For instance, user purchase one product($100 USD) and apply discount code for free trial then first order should be placed with $0 USD, once trial over, $100 USD cycle will running up. For that I'm passing "0" to setup_fee in MerchantPreferences

PayPal Android Sdk Vault

自闭症网瘾萝莉.ら 提交于 2019-12-12 05:07:12
问题 My requirement is to store credit card details in Paypal vault using Android. I followed these link https://github.com/paypal/PayPal-Java-SDK https://github.com/paypal/PayPal-Android-SDK https://developer.paypal.com/docs/integration/direct/rest-vault-overview/ there is no mention on how to vault a credit using Android sdk. I think it can be done using their Rest API. How do I achieve this in Android? 回答1: You can store credit card in paypal using vault api Follow this steps Step 1: Generate

How do we get transaction fee amount from paypal?

血红的双手。 提交于 2019-12-12 04:22:02
问题 I am using PayPal iOS sdk to accept payment from user in my iOS app. I am using sandbox for testing. The payment is working fine, I am getting successful payment response along with Payment_ID. I am passing that Payment_ID to my server and from there using REST API (Show payment details), I am trying to retrieve all the information related to that payment but it is not consistent response. Sometimes I am getting transaction_fee while sometimes it does not return in API response. I see there

How to make seller pay the transaction fees when creating Paypal recurring subscription plan by using paypal-ruby-sdk

可紊 提交于 2019-12-12 03:29:05
问题 I'm using paypal-ruby-sdk to create recurring subscriptions by credit cards. When I create subscription plan, I set transaction(setup_fee) fee to zero. So paypal sandbox returns webhooks and the transaction fee is paid to PayPal according to their transaction fee rules. But I'm not sure who pays the fee to PayPal. I want a seller to pay the fee. The below code shows subscription plan creation I wrote: plan = Plan.new({ :name => self.unique_key, :description => self.title, :type => 'fixed',

PayPal Rest API - End Point Used

佐手、 提交于 2019-12-12 00:05:44
问题 In my Dev environment, I can correctly use the Rest API to the sandbox site: $sdkConfig = array( "mode" => 'sandbox' ); $cred = new OAuthTokenCredential( $SANDBOX_clientId, $SANDBOX_clientSecret ); $access_token = $cred->getAccessToken($sdkConfig); When using the same code with Live Keys and a verified Live account: $sdkConfig = array( "mode" => 'live' ); $cred = new OAuthTokenCredential( $LIVE_clientId, $LIVE_clientSecret ); $access_token = $cred->getAccessToken($sdkConfig); I get this error

PayPal RestApiSDK .NET http 503 Server Unavailable

不羁的心 提交于 2019-12-11 20:29:09
问题 I am trying to use the PayPal .NET RestApiSDK to store credit cards and take payments in their sandbox. I am using .NET 4.5 in an MVC project. I followed the example code here: https://developer.paypal.com/webapps/developer/docs/api/#store-a-credit-card Initially, things were very easy. On day one, I was able to: -take several payments -store several cards -look up sales -refund sales -store cards in the vault (basically, everything in their example code) Ever since day one (about a week), I

Selling Digital goods via REST API

孤街醉人 提交于 2019-12-11 20:27:33
问题 I'm using paypal's REST API for digital transaction on my website. I have it all setup and working and have been able to successfully accept payments from a few users and give them their digital product. However, as of yet PayPal sees the transactions as if they were for physical items. I didn't find anything in the REST documentation regarding marking a transaction as digital. An example of one of my requests for the payment looks like this: { "intent": "sale", "redirect_urls": { "return_url

Do I need to execute my PayPal BillingAgreement one time only or every time the bill is due

孤街浪徒 提交于 2019-12-11 20:25:43
问题 I am trying to incorporate a member subscription on my website using the paypalrestsdk with python in a django application. I understand that I need to do the following: Set up a BillingPlan for each type of subscription (ie. a monthly plan for $10 a month and a yearly plan for $100 a month) Create a BillingAgreement, which (based on the user choice of billing plan) redirects the user to approve the agreement and which returns the agreement object which will give me the ability to access the