Multi regular billing cycles issue for subscription plan

Fitemos
New Community Member

When I created subscription plan with one regular billing cycle. I succeeded.
But if the plan has multi regular billing cycles, I failed.

        $billingCycles = [
            [
                "frequency" => [
                    "interval_unit" => 'MONTH',
                    "interval_count" => 2,
                ],
                "tenure_type" => "REGULAR",
                "sequence" => 1,
                "total_cycles" => 1,
                "pricing_scheme" => [
                    "fixed_price" => [
                        "value" => 10,
                        "currency_code" => "USD",
                    ],
                ],
            ],
            [
                "frequency" => [
                    "interval_unit" => 'MONTH',
                    "interval_count" => 2,
              ],
                "tenure_type" => "REGULAR",
                "sequence" => 2,
                "total_cycles" => 0,
                "pricing_scheme" => [
                    "fixed_price" => [
                        "value" => 12,
                        "currency_code" => "USD",
                    ],
                ],
            ],
        ];
error messsage is The requested action could not be performed, semantically incorrect, or failed business validation.
debug_id:"7bf0e1d697fa2",
"details":[{"field":"/billing_cycles","location":"body","issue":"MULTIPLE_REGULAR_BILLING_CYCLE_NOT_SUPPORTED","description":"Only one regular billing cycle is allowed."}]
Would you please help me?
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.