PayPal sandbox subscriptions error on payment - php

I am trying to integrate PayPal subscriptions into a project of mine and I've hit a snag. I managed to create a product and a plan and then redirect successfully to PayPal for approval but when I hit "Agree & Subscribe" I get the following error:
We're sorry, we couldn't set up your subscription using the funding source you've selected. Please try another funding source.
and there is a "Continue" button. I tried to pay using 2 different sandbox accounts that have payment sources set up but the error remains. One of the payment sources I have set up is "
The Bank Card Platinum Rewards" and as far as I know sandbox accounts come with pre-configured payment sources as was in this case.
I've, also, tried googling the error but I couldn't find exactly the same error though various other, similar, problems appear online.
I tried to go "Manage Automatic payments" and cancel all my previous subscriptions with the merchant but it didn't help.
I've looked here and here but it doesn't seem there to be a solution.
Any ideas?

There is obviously a bug in the sandbox subscriptions. Just setup a fee in the plan and the bug will go away.

Related

Woo commerce and PayPal "We're sorry, but we couldn't complete your purchase using the funding source you selected"

PayPal integrated with Woo Commerce, normally works seamlessly but I'm getting the error in the PayPal Checkout window: "We're sorry, but we couldn't complete your purchase using the funding source you selected. You can complete your purchase with the funding source shown, or choose another way to pay."
I contacted PayPal they said it was the merchant I was using. I know the problem is I have to set all payments allowed on my PayPal settings in woo commerce, but such settings don't exist.
Did anyone experience that before?
This is not a technical problem. I indicates that what was selected could not be used to complete the PayPal payment, and that an alternative was offered. If the alternative was not acceptable, then the "anther way to pay" being suggested would be a way that is not PayPal. That is all, basically. It's all going to be expected behavior as far as PayPal is concerned.

PayPal PHP REST API: Payment review has no effect in sandbox testing

I am developing a payment solution using the PayPal PHP REST SDK. Everything seems to work OK in the sandbox. I can make payments, and all the transactions show up on the dummy accounts for the seller and the buyer.
Now, I want to test with Payment Review, and have enabled this for one of my test users. According to this documentation
https://developer.paypal.com/docs/classic/lifecycle/sb_payment-review/
all transactions initiated by this user, should be set to "pending", but this doesn't happen. Alle transactions go through as normal. I've tried setting the seller account to payment review as well, but also with no effect.
Another issue is that none of the transactions appear under "Sandbox transactions", even though they appear in the respective paypal accounts of the dummy seller and buyers.
Is there something here I'm missing, or are these features just not working for the REST api?

Invalid merchant configuration for paypal Direct Credit card payment

We have used DoDirectMethod to credit card payment and recurring payment with CreateRecurringPaymentsProfile Method. But Some how i can not get error "This transaction cannot be processed due to an invalid merchant configuration.".
I found some solution for this :
1)I have problem like : Features that are not enabled for live transactions
2) If for use of REST API ,
I need to change my country then how can i change country or currency.
3) In paypal errorcode i found : Occurs when you have not agreed to the billing agreement.
- Then how can i agreed billing agrrement- need steps for it.
Please help me by providing steps of configuration or any other solution.
PayPal is confusing peoples/developers completely, i am also getting the same issue from one month on one of our client's website, i was used DoDirectPayment, and it works like a charm for test transactions, but as i make it LIVE it is was showing the same issue, i found that too, to performing transactions in LIVE mode we need to 'Enable' this feature for Direct Credit Cards, but many times i requested them (PayPal) to enable that feature, but all time they just received my Application Online and reponsed that it will take about 24 hours. I have also added extra information like SSN, EIN all that but they are so lazy or not active to do that.
At one point they are saying we need Website Payments Pro but i have not found a single link to register that, I found PayPal Payments Pro link at many sites and even in their site, these guys have a huge documentation on that website payments pro and dodirect method but not a single link how to register for that service or how they enable that feature for 'Live' mode.
And today i found they updated their developers site and make things a little different, also provided an extra method "braintreegateway" in order to process, and i tried that too using their sandbox account, its working with only PHP 5.4 and above, so old PHP version servers are unable to get that. And they also need to register your details at their end.
If i have already a PayPal Business account why do i need to register at every single method.
Sucked

Confirm Express Checkout on PayPal via PHP

This question asked before but didn't got any answer.Maybe things have been changed.
When you click the Express Checkout PayPal button on any webshop, it redirects you to a specific paypal login link, for paying the order.
I have been searching high and low for 3 weeks for a simple paypal php curl script that logs you in from this step, and confirms the payment, but have not been able to find anything.
I found out it is not possible to use the API for this, so its gotta be done by CURL.
I'm asking for this because I run a dropshipping website, and would like to automate certain steps, like placing and paying orders. A working code for this would help not just me, but all looking to automate buying in some form.
Thank's!
You can't log the buyer into PayPal when you redirect them to the site. The buyer has to enter their own account credentials themselves.
If you wanted to bill a buyer without requiring they log into PayPal each time you would need to use billing agreements (reference transactions) through Express Checkout. If you set up a billing agreement with a buyer you can charge a previously successful sale to bill them again for a different amount.
You cannot do what you want with Express Checkout, especially since nobody will ever enter the paypal details on your website (that is the entire point of paypal).
You can use either preapproved payments (buyers preappove payments being taken out of their account up to a certain ceiling), or reference transactions (you reference a new transaction to an older transaction. PayPal will then use the billing details of this earlier transaction to bill the user).
Preapproved payments is part of Adaptive Payments. Documentation is at https://developer.paypal.com/webapps/developer/docs/classic/adaptive-payments/integration-guide/APIntro/
You can find more details about Reference Transactions at https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECReferenceTxns
Note: Reference Transactions needs to be enabled on your account. This API call is not open to everyone due to the potential for abuse, so you may want to look into whether you're eligible for it before you start working on a full integation with it.
You can find more info here :https://www.paypal-community.com/t5/Merchant-services-Archive/Does-Paypal-have-a-quot-Token-Payments-quot-concept/td-p/325794
Also google "token payments" as that is what you need and most payment gateways usually support them.

PayPal Digital Goods Error on login

I am using the following code to accept payments for digital goods:
https://www.x.com/blogs/Nate/2011/01/07/digital-goods-with-express-checkout-in-php
I have a sandbox account and I have used the API credentials from the sandbox account.
Everything works fine until I press the "Pay with PayPal" button. At this point when I try to login to continue the simulated transaction I receive the following error: "We are unable to complete your request at this time. Please try again later. We apologize for the inconvenience."
I have no idea whet I'm doing wrong, can somebody help?
There are a number of people on the X.com forums with the same issue. It appears to have been resolved for some of them by asking PayPal tech support to enable Digital Goods transactions for their sandbox account. Apparently this option is not available during normal sandbox setup.
Just in case if anyone else getting the same error.
https://www.x.com/thread/49935
Make sure you set the PaymentAction to "Sale" instead of "Authorization"
If you receive an error message in your uri request LONGMESSAGE parameter to the effect of "Your account is not signed up to sell Digital Goods" you can ask on the x.com forums to have it added.
However if you're in a hurry, you can now create a new pre-configured test user and set its type to Merchant. It will have PayPal Express/Digital Goods enabled even though there isn't a configuration option for it.
(Website Payments Pro test users will not be auto configured with Digital Goods in my experience.)

Categories