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

fix: only redirect to create_recurring_profile iff subscription_details is present #38

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

phot0n
Copy link
Contributor

@phot0n phot0n commented Jul 24, 2023

removed the loose condition of subscription_details or id present and made it to redirect to create_recurring_profile only if subscription_details is present

reason for this: https://developer.paypal.com/api/nvp-soap/create-recurring-payments-profile-nvp/#link-billingperioddetailsfields

the billingperiod, billingfrequency are required and there is probably no point in doing create_recurring_profile api call/redirect if they are not present as it will eventually lead to error.

@phot0n phot0n merged commit 7a37e99 into frappe:develop Jul 24, 2023
@phot0n phot0n deleted the fix-paypal-redirect branch July 24, 2023 12:49
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

Successfully merging this pull request may close these issues.

1 participant