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

Authurl is not returned when creating subscription #80

Open
kailashyogeshwar85 opened this issue Nov 9, 2024 · 0 comments
Open

Authurl is not returned when creating subscription #80

kailashyogeshwar85 opened this issue Nov 9, 2024 · 0 comments

Comments

@kailashyogeshwar85
Copy link

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,
        },
      });
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

1 participant