trying to do negative testing for paypal on their sandbox - paypal

how do i enable negative testing on the paypal sandbox?
I have found many old articles that suggest, you go to the dev dashboard click on the settings of a generated user and there is suppose to be a option for negative testing.
i have created 2 users plus the default user and none of them have the negative testing option in settings or anywhere else
Thanks for any help

What PayPal API are you testing? The setting in each sandbox account options only applies to the old classic NVP/SOAP APIs, which you should not be integrating anyway.
With current REST APIs such as v2/checkout/orders, request headers or test values are used to trigger negative responses in sandbox. No option needs to be enabled for this.

Related

paypal sandbox: auto return not working

breaking our heads over how to get autoreturn to work in sandbox.
We have enabled the auto return feature in the sandbox account
associated with the APP we use:
2. We have entered the return URL in developer.paypal.com in the APPs settings:
3. And still. We are not returned back to our URL provided:
note also that we have waited several hours between changing something and testing it as instructed. Any help highly appreciated.
Try turning Payment Data Transfer on in Sandbox account (next section down in Website Payment Preferences).
answer found. according to paypal support auto-return does not work with the paypal invoicing API, which we use, just express checkout etc.

At this time, we are unable to process your request. Please return to Test Store and try another option

I'm trying to create a billing agreement in my sandbox environment but got this cryptic error:
At this time, we are unable to process your request. Please return to [my] Test Store and try another option.
How would I debug this?
My code so far includes:
Create an API token
Creating a billing plan
Activate the billing plan
Create the billing agreement
Everything works until step 4.
I'm using the code from the REST PHP SDK samples.
This problem was solved here by clearing the cache. I've tried that as well as another newly installed browser, but the problem remains.
Tips?
Edit: Billing agreements are enabled in the app as stated here. It might be specific to Germany, as I am in Germany too.
unfortunately it is specific to Germany:
"Recurring payments cannot be created for buyers in Germany or China. In this case, you can use reference transactions as an alternate solution."
https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/integration-guide/ECRecurringPayments/#limitations
Here is my suggestion:
Login to PayPal. https://www.paypal.com/signin
Go to the Sandbox Test Accounts
https://developer.paypal.com/developer/accounts
Create a new
personal sandbox test account (email address, password, country,
verified, etc). If you see no create button, then you will have to
clone one by clicking on the icon at the right the table row. Just
make sure you are cloning one of type PERSONAL.
Clear the PayPal cookies using your browser settings. (This will log you out of PayPal)
Now, you can run your script and when you are redirected to PayPal for
payment approval you will have to type the credentials of the newly
created personal test account.
In short, what I suggest you do is creating a new personal sandbox test account and clearing your browser cookies.
Good luck

Disable e-checks on Paypal Classic Application?

Some users have found how to abuse e-checks on my application. I have created a new classic api application and under Adaptive Payments unchecked E-Checks. I have been using that new app for a couple days now and I am still receiving e-check payments. What do I need to do to disable this functionality?
This is an account level flag (meaning you need to do this on the account actually receiving the payment). This thread gives detailed instructions how to do it.
https://www.paypal-community.com/t5/My-account-settings-Archive/Disable-eCheck-As-a-Payment-Option/td-p/329394

How can I simulate an error using Paypal Payments Pro sandbox?

How do I simulate an error with PayPal Payments Pro? I am trying to simulate things such as Suspected Fraud, Declined cards etc.
We are using Magento Commerce Enterprise edition and would love to be able to see errors from the user interface. Any help would be greatly appreciated.
We are developing using the PayPal sandbox.
On the Developer Central site (https://developer.paypal.com), log in and go to Dashboard >> Sandbox >> Accounts. Find the email address for the PayPal Payments Pro account. Click on it, then click Profile. On the Settings tab, make sure that Negative Testing is enabled.
Once Negative Testing is enabled, make sure that the order total matches one of PayPal's error codes (you can see the full list here). For example, to simulate error code 15005 (which is your basic "card was declined" error), run a transaction for $150.05.
More info available here.
Edit 7/7/2017: Changed instructions to reflect the current location of the negative test mode toggle, and changed the link to PayPal's dev documentation.

Setting up Zencart with Paypal

To begin: I am trying to setup Zencart with Paypal. I have followed all of Paypal and Zencart's instructions:
Putting in Paypal's API username, password and signature code into Zencart's Payment Module section. Checked the "live" environment.
I then tried buying a product on the website and got the following error message:
Zen Cart message: We are sorry for the inconvenience. The PayPal account
authentication settings are not yet set up, or the API security information
is incorrect.
10002
Security error
Security header is not valid
I have tried looking up the answer but everything I see says to make sure the environment is not in sandbox and that everything is typed in correctly. I have tripled checked and the API is typed in correctly and it is set to live.... what else can I do?
Moving on, I have tried to setup the sandbox but am unfamiliar with how to use Paypal's sandbox. So I reconfigured Zencart to "sandbox mode" with the appropriate sandbox API and I set up box a sandbox account for a merchant and private buyer but I don't know how to use them. Should I go back to the Zencart store and register with my new "Paypal sandbox private buyer email"? And will checking out using this email they gave me work as just a test... I don't want to go through with the checkout if I'm going to get billed...
Thank you for any help:)
The best place to get support on Zen Cart issues is directly on the Zen Cart support forum at http://www.zen-cart.com/forum.php
Further, an existing article already explains the basics of the problem you describe: http://www.zen-cart.com/content.php?277-the-paypal-account-in-this-store-is-presently-misconfigured-to-use-mixed-sandbox-and-live-settings-we-are-unable-to-complete-your-transaction-please-notify-the-store-owner-so-they-can-correct-this-problem-10002
It is absolutely critical that the THREE parts of your API settings (username, password, signature) be copied EXACTLY from PayPal's site into your store's admin settings screen.
There's no need to use sandbox unless you're a programmer writing new features for payment processing. So be sure to check the "Live" radio-button. (I realize you already mentioned that. Just adding this for clarity.)
You can also get more details on exactly what is coming back from PayPal by turning on debug logging in the module's settings.
PayPal tech support is available at www.paypal.com/mts - they can look at your actual transmissions and at your account, and sort out a problem if there's something wrong with the API signature details.