diff --git a/ghost/members-api/lib/stripe/api/createDeterministicApi.js b/ghost/members-api/lib/stripe/api/createDeterministicApi.js index 1e53e59611..0dadaff096 100644 --- a/ghost/members-api/lib/stripe/api/createDeterministicApi.js +++ b/ghost/members-api/lib/stripe/api/createDeterministicApi.js @@ -43,7 +43,12 @@ function createCreator(resource, getAttrs) { stripe, resource, Object.assign(getAttrs(object, ...rest), {id}) - ); + ).catch((err) => { + if (err.code !== 'resource_already_exists') { + throw err; + } + return stripeRetrieve(stripe, resource, id); + }); }; }