#Zia - Subscription Schedules

1 messages · Page 1 of 1 (latest)

round bronze
#

HI 👋

#

What's up?

static coyote
#

Hello
hope you are doing good

#

I am facing the following error:
Received unknown parameter

#

options.AddExtraParam("subscription_data[on_behalf_of]", model.ConnectedStripeAccountId);
options.AddExtraParam("subscription_data[transfer_data][destination]", model.ConnectedStripeAccountId);

#

while adding the following extra params in creating subscription schedule create options

round bronze
static coyote
#

actually this is what I'm trying to do

round bronze
#

Unfortunately that does not help me much. Can you please provide the request ID fro your Stripe account logs?

static coyote
#

req_tfi5k6HpxDl3XW

#

I think this is the request Id

round bronze
#

Okay thank you, I'll look now.

#

Oh, okay. You need to specify the currency when passing price_data

#

We return that in the error object:

error: {
    code: "parameter_missing",
    doc_url: "https://stripe.com/docs/error-codes/parameter-missing",
    message: "Missing required param: items[0][price_data][currency].",
    param: "items[0][price_data][currency]",
    type: "invalid_request_error"
  }
static coyote
#

sorry

#

that's not the right one

#

req_i1Ydyf78A5cGlQ

#

this is the right one

#

I mistakenly picked that from prod

round bronze
static coyote
#

what's the alternate in that case
if I want to use on behalf of and transfer amount

round bronze