# First confirmation of a payment in a subscription

**URL:** <https://community.rapyd.net/t/first-confirmation-of-a-payment-in-a-subscription/490>\
**Category:** 🙋🏽‍♀️🙋🏽‍♂️ Ask Questions\
**Created:** [June 19, 2021, 2:04am UTC](https://community.rapyd.net/t/first-confirmation-of-a-payment-in-a-subscription/490 "2021-06-19T02:04:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/abo/32/906_2.png) [@abo](https://community.rapyd.net/u/abo)\
**Post date:** [June 19, 2021, 2:04am UTC](https://community.rapyd.net/t/first-confirmation-of-a-payment-in-a-subscription/490/1 "2021-06-19T02:04:57Z")

</div>

Hello!

So once I’ve created a subscription and I’ve received the various webhooks invocations, e.g. in this order:

CUSTOMER\_SUBSCRIPTION\_NEW\_CYCLE,  
INVOICE\_CREATED,  
CUSTOMER\_SUBSCRIPTION\_CREATED,  
(3 minutes later) INVOICE\_PAYMENT\_CREATED,  
PAYMENT\_SUCCEEDED,  
INVOICE\_FINALIZED,  
(7 minutes later) PAYMENT\_COMPLETED,  
INVOICE\_PAYMENT\_SUCCEEDED

When the customer signs up for a subscription the first time, I’d rather want the funds withdrawn within a few seconds, just like with the CheckoutPage implementation (that I also have for one-off purchases).

Should I be doing something to push this faster through (like e.g. finalizing the invoice, completing the payment?)

Or is this related to the test environment?

Or am I missing something entirely?

Thanks!

---

<div class="post-metadata">

**Author:** ![CharlesDorsett](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/charlesdorsett/32/47_2.png) [@CharlesDorsett](https://community.rapyd.net/u/CharlesDorsett)\
**Post date:** [June 20, 2021, 8:34am UTC](https://community.rapyd.net/t/first-confirmation-of-a-payment-in-a-subscription/490/2 "2021-06-20T08:34:44Z")

</div>

I just tried this. After creating the product and plan, I created a subscription (with no free trial period), and I got the following webhooks:

- CUSTOMER\_SUBSCRIPTION\_NEW\_CYCLE
- INVOICE\_CREATED
- CUSTOMER\_SUBSCRIPTION\_CREATED

4 seconds later, I got these:

- INVOICE\_FINALIZED
- PAYMENT\_COMPLETED
- PAYMENT\_SUCCEEDED
- INVOICE\_PAYMENT\_SUCCEEDED
- INVOICE\_PAYMENT\_CREATED

Try it again and let me know what you get.

---

<div class="post-metadata">

**Author:** ![abo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/abo/32/906_2.png) [@abo](https://community.rapyd.net/u/abo)\
**Post date:** [June 21, 2021, 12:21am UTC](https://community.rapyd.net/t/first-confirmation-of-a-payment-in-a-subscription/490/3 "2021-06-21T00:21:29Z")

</div>

Hello Charles and thank you for the reply.

So I’ve tried this again and I can see a pattern in this… there seems to be a batch run on Rapyds side every 15 minutes or so where the secondary batch of webhooks are sent:

INVOICE\_PAYMENT\_CREATED,  
PAYMENT\_SUCCEEDED,  
INVOICE\_FINALIZED,  
PAYMENT\_COMPLETED,  
INVOICE\_PAYMENT\_SUCCEEDED

I’m getting notified pretty consistently every 15 minutes at  
HH:03:43,  
HH:18:43,  
HH:33:43 and  
HH:48:43

All the replies get batched up and delivered at these times.

So I’m wondering if you were perhaps simply lucky when you performed this? Can you try this a couple of times and see if you get this consistently?

I’ve tried different currencies and amounts with same results. I wonder if I might be doing something that could be causing this delay?

---

<div class="post-metadata">

**Author:** ![CharlesDorsett](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/charlesdorsett/32/47_2.png) [@CharlesDorsett](https://community.rapyd.net/u/CharlesDorsett)\
**Post date:** [June 21, 2021, 7:38am UTC](https://community.rapyd.net/t/first-confirmation-of-a-payment-in-a-subscription/490/4 "2021-06-21T07:38:58Z")

</div>

I got the same behavior you did. I then tried ‘Complete a Cycle’ (a sandbox method) to see what happens, and I think that will do what you want it to. You can also test the various ‘invoice’ methods.

I hope this helps. Let me know if you need anything else, and good luck with your project 🏅
