diff --git a/packages/playground/src/services.js b/packages/playground/src/services.js index 86dfc2dd1..340b8eac9 100644 --- a/packages/playground/src/services.js +++ b/packages/playground/src/services.js @@ -11,6 +11,11 @@ export const getPaymentMethods = configuration => .catch(console.error); export const makePayment = (data, config = {}) => { + // Needed for storedPMs in v70 if a standalone comp, or, in Dropin, advanced flow. (Sessions, v70, works with or without this prop) + if (data.paymentMethod.storedPaymentMethodId) { + config = { recurringProcessingModel: 'CardOnFile', ...config }; + } + // NOTE: Merging data object. DO NOT do this in production. const paymentRequest = { ...paymentsConfig, ...config, ...data }; if (paymentRequest.order) {