#shmarti-customer-payment-method
1 messages · Page 1 of 1 (latest)
it's a "placeholder". You would pass the id on an existing PaymentMethod object pm_123 in that case
But it's rate to do that, usually you use SetupIntents to collect payment method details ahead of a future payments instead
im talking merely syntax since typescript is not my everyday. Im just seeing a string nested in a dictionary.
{
payment_method: "pm_123"
}
}```
not sure I understand what you mean and why you have two pairs of {
payment_method: 'pm_123',
});```
that's what the code would look like
Nice, yess those {{ }} where confusing me. It doesnt say placeholder AT ALL
It looks like its expecting a json object in there
yeah it's just how we do "placeholder for an existing object id" in our docs but I agree it can be confusing. I much prefer when we do pm_123 but weirdly when we used to do that it confused developers even more
@naive depot thank you for the quick support and yeah (would be nice to note that on the side).