#chronicsmoke
1 messages · Page 1 of 1 (latest)
Hi, what's you question?
when I create a payment method, and set it as default it doesnt update the customers primary source, but when I make a payment method in the stripe web UI it is created as a card object and that is set to the customer primary source
What do you need to set it as the primary source for? Why not set is as the default Payment Method instead?
isnt primary source the customers primary payment method?
{
"id": "cus_N6vCVzIoWWGSm3",
"object": "customer",
"address": null,
"balance": 0,
"created": 1672878635,
"currency": "usd",
"default_source": "card_1MMjFTEsTmKdHgxs6IRKqhMb",
"delinquent": false,
"description": "TEST CUSTOMER",
"discount": null,
"email": null,
"invoice_prefix": "0240DF36",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {},
"name": null,
"next_invoice_sequence": 3,
"phone": null,
"preferred_locales": [],
"shipping": null,
"tax_exempt": "none",
"test_clock": null
}
or is that just legacy and I should use the default payment method
That's legacy and you should use default payment method for Payment Methods
ok, that is the preferd method going forward is just payment methods
correct
ok thanks
appreciate the help
does the first payment method added to a customer automatically get set to the default payment method?
No. You would need to set it as the default