Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription errors #61

Closed
mcanyucel opened this issue Jun 24, 2019 · 1 comment
Closed

Subscription errors #61

mcanyucel opened this issue Jun 24, 2019 · 1 comment

Comments

@mcanyucel
Copy link

mcanyucel commented Jun 24, 2019

For any one of the methods defined under the file IyzipaySubscriptionSamples.js, the result is always failure in both sandbox and production API keys.
For the sample request given in the same file:

var createRequest = {
        locale: Iyzipay.LOCALE.EN,
        conversationId: '123456789',
        productReferenceCode: '4ab2cadf-8ec5-4bc7-b21e-11abbc4df707',
        name: 'Calculator-monthly',
        price: 19.99,
        currencyCode: Iyzipay.CURRENCY.TRY,
        paymentInterval: Iyzipay.SUBSCRIPTION_PRICING_PLAN_INTERVAL.MONTHLY,
        paymentIntervalCount: 1,
        trialPeriodDays: 1,
        planPaymentType: Iyzipay.PLAN_PAYMENT_TYPE.RECURRING
    };
    console.log(createRequest);
    iyzipay.subscriptionPricingPlan.create(createRequest, (err, result)=> {
        console.log(err, result);
        response.status(200).send({error:err, result: result});
    });

The response is

    "result": {
        "status": "failure",
        "errorCode": "1",
        "errorMessage": "Sistem hatası",
        "locale": "tr",
        "systemTime": 0
    }

Is the subscription service available for end users? Does it require any additional purchase from Iyzico store?

@can3ry
Copy link

can3ry commented Jun 25, 2019

Hi Can,
Thank you for checking our subscription api.
Kindly note that subscription api is not enabled by default. So we need to enable that functionality first. I've just contacted you via email. Could you check?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants