# When User Cancels PayPal (Standard) Transaction the Form Entry shows "Processing"

**URL:** https://community.gravityforms.com/t/when-user-cancels-paypal-standard-transaction-the-form-entry-shows-processing/8308
**Category:** Get Help
**Tags:** paypal, entries
**Created:** [March 14, 2021, 12:09am UTC](https://community.gravityforms.com/t/when-user-cancels-paypal-standard-transaction-the-form-entry-shows-processing/8308 "2021-03-14T00:09:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![SleeperTech](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/sleepertech/32/1187_2.png) [@SleeperTech](https://community.gravityforms.com/u/SleeperTech)
#### Post date: [March 14, 2021, 12:09am UTC](https://community.gravityforms.com/t/when-user-cancels-paypal-standard-transaction-the-form-entry-shows-processing/8308/1 "2021-03-14T00:09:19Z")

</div>

Greetings

So I’ve been explicitly testing a PayPal scenario wherein a user…

1. Initiates a (PayPal Standard) payment by clicking the form’s “Submit” button
2. The user is then sent to PayPal (sandbox in this case)
3. The user logs into PayPal as though they are ready to select a payment type and complete the transaction.
4. But **instead** of completing the transaction, the user realizes s/he needs to check his/her balance first (or …_whatever_), **so user clicks the “Cancel and return to John Doe’s Test Store” link** on the PayPal page, which sends the user to my pre-configured _“transaction cancelled”_ page.
5. However, the form **entry** for that transaction shows “ **processing** ” …apparently _forever_.
6. Now say the user checks his/her balance _and is now ready to complete the transaction_ and so goes back to the form, and this time **completes** the payment transaction.
7. Now I have **another** entry for that user showing a **paid** transaction, such that there are now **two** entries for that user: **[a]** Processing and **[b]** Paid.

This could cause all sorts of issues with reporting, etc. So…

1. Is there any filter or hook for _user initiated_ cancelled PayPal (Standard) transactions?
2. Otherwise, should I dynamically delete the entry for _user initiated_ cancelled PayPal (Standard) transaction?
3. Are there any established _“best practices”_ for this scenario?

Please advise, thanks,

Preston

---

<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: [March 15, 2021, 2:59pm UTC](https://community.gravityforms.com/t/when-user-cancels-paypal-standard-transaction-the-form-entry-shows-processing/8308/2 "2021-03-15T14:59:50Z")

</div>

Yes, delete the entry that is stuck on Processing once you have a paid entry. You will always have an entry marked Processing, when the form is submitted. If the visitor does not complete the payment, the entry remains with a payment status Processing forever.

---

<div class="post-metadata">

### Author: ![SleeperTech](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/sleepertech/32/1187_2.png) [@SleeperTech](https://community.gravityforms.com/u/SleeperTech)
#### Post date: [March 17, 2021, 2:47pm UTC](https://community.gravityforms.com/t/when-user-cancels-paypal-standard-transaction-the-form-entry-shows-processing/8308/3 "2021-03-17T14:47:40Z")

</div>

Hey Chris,

Thanks for replying.

> [@chrishajer](#):
>
> Yes, delete the entry that is stuck on Processing once you have a paid entry.

OK so I will delete those entries. I’m gonna try to hook into a completed payment and check for any previous entries rather than doing it by hand.

**Update** : hooking in seems like a lot of overhead for an edge case so …maybe not. still evaluating.

Thanks again,  
Preston

---

<div class="post-metadata">

### Author: ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)
#### Post date: [January 5, 2022, 8:40am UTC](https://community.gravityforms.com/t/when-user-cancels-paypal-standard-transaction-the-form-entry-shows-processing/8308/4 "2022-01-05T08:40:59Z")

</div>


