Developer forum

Forum » Ecommerce - Standard features » RE: Credit Card Expiration Date in Recurring Orders

RE: Credit Card Expiration Date in Recurring Orders

Bruno
Reply

Hi Guys,

I've a couple questions about Credit Cards and Recurring Orders. When an user creates a recurring order and uses Credit Card (Stripe) as payment method and the card expires before the last recurring, how Dynamicweb handles this?

  • The order is canceled or the recurring order is canceled? 
  • It's possible to notify the user that is credit card expired? 

Best Regards,

Bruno

 


Replies

 
Jonas Krarup Dam
Reply
This post has been marked as an answer

Hi Bruno,

Currently, we do not check for expiration date on the card, as we do not save this information (only Stripe does).

This means that the recurring order will fail when the card no longer is valid, and it will continue to do so until it is manually deleted, or updated with a valid card.

The recurring order will remain, and will continue to retry creating new orders, until it is manually updated or deleted.

 

There is currently no functionality for notifying the users automatically, on a failed recurring order - this has to be handled manually by the shop owner/manager.

 

Regards, Jonas

 

Votes for this answer: 1
 
Bruno
Reply

Hi Jonas,

Thanks for your help!

Best Regards,

Bruno

 
Nuno Aguiar
Reply

Hi Jonas,

 

Thank you for that. Could you tell us what would be the best notification to capture those? We need to notify both the customer and our client that those orders have failed. But we want that only on recurring orders.

 

Best Regards,

Nuno Aguiar

 
Jonas Krarup Dam
Reply

Hi Nuno,

I don't believe we have any notifications for this.

If needed, we can add one (or more).

Off the top of my head, I'm thinking simply an "AfterRecurringOrderCreation" notification, with the arguments "RecurringOrder", "CreatedOrder" and "ErrorMessage"

would that be sufficient, or should we add more?

/Regards, Jonas

 
Nuno Aguiar
Reply

Hi Jonas,

 

That one seems perfect for now. Thanks.

 

Best Regards,

Nuno Aguiar

 
Jonas Krarup Dam
Reply
This post has been marked as an answer

Hi Nuno,

I just talked to a colleague, and that helped me get this concept clearer in my head.

I believe that you should be able to implement this with the notifacations that are available: CheckoutDoneOrderIsNotComplete is fired after a payment/CheckoutHandler has failed. Then you can look at the order in the argument and check if it has a  RecurringOrderId - if it does, you can send out emails and whatever else you need to do.

This is probably the best way to implement the functionality, as we do not want to have redundant notifications in the system.

Regards, Jonas

Votes for this answer: 1
 
Nuno Aguiar
Reply

Hi Jonas,

 

Perfect thank you. We'll try it that way.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum