Skip to content

Authurl is not returned when creating subscription #80

@kailashyogeshwar85

Description

@kailashyogeshwar85

Environment: SANDBOX

When creating subscription from dashboard it created auth url which can be used to make payment. Is this supported or it is intended?

Response:

{
	"authorization_details": {
		"authorization_amount": 1,
		"authorization_amount_refund": false,
		"authorization_reference": null,
		"authorization_time": null,
		"authorization_status": null,
		"payment_id": null,
		"payment_method": null,
		"instrument_id": null
	},
	"cf_subscription_id": "576635",
	"customer_details": {
		"customer_name": null,
		"customer_email": "[email protected]",
		"customer_phone": "*********"
	},
	"plan_details": {
		"plan_id": "BASIC_ONE_MONTH",
		"plan_name": "Basic",
		"plan_type": "PERIODIC",
		"plan_max_cycles": null,
		"plan_recurring_amount": 99,
		"plan_max_amount": 99,
		"plan_interval_type": "MONTH",
		"plan_intervals": 1,
		"plan_currency": "INR",
		"plan_note": null,
		"plan_status": null
	},
	"subscription_expiry_time": "2050-12-31T08:04:59+05:30",
	"subscription_first_charge_time": "2024-12-10T05:30:00+05:30",
	"subscription_id": "sub_2Ap4em28dtYswMMIKz9L",
	"subscription_meta": {
		"return_url": null
	},
	"subscription_payment_splits": null,
	"subscription_session_id": "sub_session_aWpGfR8fGPQHQn_AZKWNKZZusMls-N-KLr672hPU8gpZ5uM4nUyUQUGCo2D9EHiDGtm24na29vE6dgZhl_SIqXrQ_Wnbx0J_8VXkSVWzIlPl35RwjNsT6SsUE_WpldDZqwjPaIwpayment",
	"subscription_status": "INITIALIZED",
	"subscription_tags": null
}

SDK API

      const result = await Cashfree.SubsCreateSubscription(this.cfApiVersion, {
        subscription_id: data.subscriptionId,
        customer_details: {
          customer_email: data.customerDetails.customerEmail,
          customer_phone: data.customerDetails.customerPhone,
        },
        plan_details: {
          plan_id: data.planDetails.planId,
        },
        // subscription_expiry_time: data.subscriptionExpiryTime,
        authorization_details: {
          authorization_amount: data.authorizationDetails.authorizationAmount,
        },
        //subscription_first_charge_time: data.subscriptionFirstChargeTime,
        subscription_meta: {
          notification_channel: data.subscriptionMeta.notificationChannel,
        },
      });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions