#jimmyjimmy-schedule

1 messages · Page 1 of 1 (latest)

silver vector
#

hi there, do you mean you want to automatically stop payment after a certain period of time?

finite bramble
#

yes

silver vector
finite bramble
#

this is for new customer, they no customer ID

finite bramble
#

can set schedule during checkout?

finite bramble
#

how to get customer ID, after checkout?

lament obsidian
#

Hi there! Jumping in for Alex, hope you don't mind.

#

There are a number of ways, one way I would recommend is to listen to checkout.session.completed webhook events.

finite bramble
#

but this field is null

lament obsidian
#

The new way Checkout Session works, if the Customer ID is not defined when creating the Checkout Session, the customer is acknowledged as "Guest", therefore there is no respective Customer object.

#

You can either:

  • create the Customer object in advance and use its Customer ID for the Checkout Session
  • or set the Checkout Session field customer_creation to always when creating it.