App submission

App submission

Ainrad
Shopify Partner
1 0 0

Hello everyone,

I just finished developing my application and submitted it to Shopify for approval. I have a question regarding the billing methods configuration during the submission process.

Should the test=true parameter be kept, or should it be removed?

Here is my current code:

 

$chargePayload = [
"recurring_application_charge" => [
"name" => $name,
"price" => $price,
"return_url" => $returnUrl,
"test" => true,
"trial_days" => 0
]
];

With test=true, my application works correctly in the development environment. However, when I remove this parameter to test the production behavior, Shopify encounters the following error:

 

recurring_application_charges.json resulted in a 403 Forbidden response.

I would like to know if it is mandatory to disable test mode (test=false) when submitting an app, or if the app can be approved while keeping it enabled.

Thanks in advance for your help!

Reply 1 (1)

thescriptflow
Shopify Partner
611 41 81

Could you please try this code for submission.

$chargePayload = [
    "recurring_application_charge" => [
        "name" => $name,
        "price" => $price,
        "return_url" => $returnUrl,
        "trial_days" => 0
    ]
];

- Need a Shopify Specialist? Chat on WhatsApp Or Email at info@thescriptflow.com

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


- If my solution was helpful, mark it as a solution and hit the like button! And Wait Don't forget to Buy me a Coffee