#FootballForever
1 messages · Page 1 of 1 (latest)
Hi 👋 sorry, I'm not sure I understand, we generate the ID for all of the objects in our environment.
Okay so can I link a payment method ID that isn't linked to a customer profile (just a normal payment at the moment) - by creating a new customer profile and attached the payment method ID to it
No, if a Payment Method has been used to process a payment before being attached to a Customer, then it cannot be attached to a Customer and cannot be reused. The Payment Method must be attached to the customer before being used for it be reusable, or it must be attached to the Customer during the payment process.
How about if it is attached to a guest customer profile?
In that case, as I can see on my dashboard, the payment method ID still seems to be tokenized and saved but not reusable via the dashboard. But if a new customer profile was created and the payment method ID saved on the guest customer profile was attached - would that work?
No, if the Payment Method was used to process a payment before it was attached to a Customer, then it can no longer be attached to a Customer and be reused.
So your saying if a PM ID is not already attached to a customer object - it cannot be attached to a new customer object? Is that because the card itself is not tokenized so it is literally impossible or because Stripe doesn't allow it.
From my understanding, guest customers still have the card tokenized however they don't have an associated CUS ID so you cannot make action with it. But if a CUS ID is created then it should be possible
@wise sand
A Payment Method that is not attached to a Customer can be attached to one, as long as the Payment Method wasn't already used to process a payment. If the Payment Method was used for a payment then an explicit error is thrown if you try to attach it to a Customer, stating the Payment Method was used without being attached to a Customer and is not available to be reused.
How would it be possible for a payment method to be created without being used for a payment? Doesn't the PM ID orignally come from a payment?
Not necessarily, we have flows for collecting payment method details without processing a payment:
https://stripe.com/docs/payments/save-and-reuse
Then Is it possible to use the reuse payment method ID on a test checkout form (No charge made against it) just to create the customer ID from that checkout
Let's take a step back, what are you trying to accomplish?
I'm trying to see if it possible to take a payment method ID saved on my accuont and create a customer profile from it
Because when the payment was originally processed, for some reason the Customer ID wasn't created or linked to our checkout process
So I'm trying to fix that for our existing customers which are right now saved as "Guests"
No, that is not possible as it sounds like the Payment Method was already used to process a payment.
Hmm okay
Last question
Am I right in saying that "Guest" customers still have tokenized cards linked to their profiles even though they don't have CUS ID's associated with them
I'm not sure I understand what you're trying to say by that. A Payment Method will exist, that is true, and that will represent the guest customer's payment method details.
So the payment method is existing and tokenized but you are saying there is no way to access it or attach it to a customer