# Paypal Checkout - Never fails in sandbox

**URL:** <https://community.gravityforms.com/t/paypal-checkout-never-fails-in-sandbox/11324>\
**Category:** Get Help\
**Tags:** paypal, sandbox, authorizenet\
**Created:** [December 2, 2021, 4:16pm UTC](https://community.gravityforms.com/t/paypal-checkout-never-fails-in-sandbox/11324 "2021-12-02T16:16:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oadmin](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@Oadmin](https://community.gravityforms.com/u/Oadmin)\
**Post date:** [December 2, 2021, 4:16pm UTC](https://community.gravityforms.com/t/paypal-checkout-never-fails-in-sandbox/11324/1 "2021-12-02T16:16:04Z")

</div>

I replaced [auth.net](http://auth.net) with the new paypal checkout but can’t seem to get the form to ever fail using the credit card payment type. The payments do not post to the Sanbox account so I’m assuming they are actually failing but no response is displaying in the form it just continues to the confirmation /thank you page (normal GF confirmation process).

I tried enabling negative testing in PayPal with the sandbox account I’m using with GF and sending some of the CVVs they suggested 123 120 but still everything seems successful I can’t seem to get an invalid credit card response.

Any help or ideas troubleshooting would be great!

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [December 2, 2021, 4:22pm UTC](https://community.gravityforms.com/t/paypal-checkout-never-fails-in-sandbox/11324/2 "2021-12-02T16:22:20Z")

</div>

I recommend opening a support ticket for this issue due to the sensitive issue around payments:

[https://www.gravityforms.com/open-support-ticket/technical/](https://www.gravityforms.com/open-support-ticket/technical/)

Thank you.

---

<div class="post-metadata">

**Author:** ![Oadmin](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@Oadmin](https://community.gravityforms.com/u/Oadmin)\
**Post date:** [December 2, 2021, 5:25pm UTC](https://community.gravityforms.com/t/paypal-checkout-never-fails-in-sandbox/11324/3 "2021-12-02T17:25:12Z")

</div>

I tried support but they just said PayPal was sending back an authorized capture (success) and to take up the issue with them.

I’m posting back to see if anyone has any suggestions on how to test an invalid credit card in sandbox mode with the new Paypal Checkout Addon in Paypal sandbox mode. Even if someone could confirm it works (they get an invalid) for them that would be very helpful for me.

I’m going to contact PayPal as suggested but it feels like I’m missing something basic.

---

<div class="post-metadata">

**Author:** ![Oadmin](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@Oadmin](https://community.gravityforms.com/u/Oadmin)\
**Post date:** [December 8, 2021, 12:46pm UTC](https://community.gravityforms.com/t/paypal-checkout-never-fails-in-sandbox/11324/4 "2021-12-08T12:46:56Z")

</div>

After several days of PayPal incompetence they’ve responded with:

> negative testing CVV values is currently not supported with our REST API’s.
> 
> You can only conduct general negative testing with our REST API’s to simulate the API response you would receive in such a scenario, which would include adding specific headers within your API requests :
> 
> Example : ‘PayPal-Mock-Response: {“mock\_application\_codes”: “DUPLICATE\_INVOICE\_ID”}’
> 
> This testing method is detailed here : [Simulate negative responses with request headers](https://developer.paypal.com/docs/api-basics/sandbox/request-headers/#enable-negative-testing)
> 
> The complete list of Orders v2 error codes can be found here : [https://developer.paypal.com/docs/api/reference/orders-v2-errors](https://developer.paypal.com/docs/api/reference/orders-v2-errors)

So I ask again. How can one simply test an order failure using Gravity forms in Paypal Sandbox mode?

I won’t have access to the header information sent out through gravity forms like the article suggests. I guess I will give up and use a live PayPal account. This baffles my mind that nobody wants to test an invalid card response from Paypal.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [January 7, 2022, 12:47pm UTC](https://community.gravityforms.com/t/paypal-checkout-never-fails-in-sandbox/11324/5 "2022-01-07T12:47:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
