mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Fixed error handling webhook for unknown member
refs https://github.com/TryGhost/Team/issues/1374 We cannot update payment details for members which we don't know about, so returning and giving a successful response to Stripe is the correct thing to do.
This commit is contained in:
parent
e400b4d8f4
commit
f452df7e92
@ -152,6 +152,10 @@ module.exports = class WebhookController {
|
||||
customer_id: setupIntent.metadata.customer_id
|
||||
});
|
||||
|
||||
if (!member) {
|
||||
return;
|
||||
}
|
||||
|
||||
await this.api.attachPaymentMethodToCustomer(
|
||||
setupIntent.metadata.customer_id,
|
||||
setupIntent.payment_method
|
||||
|
Loading…
Reference in New Issue
Block a user