Skip to content

Conversation

mrsaicharan1
Copy link
Member

Fixes #3413

Short description of what this resolves:

Environment is being forced to a live environment without any param specified. TO properly route the API hit to sanbox/live, settings value is being passed.

@auto-label auto-label bot added the feature label Aug 26, 2019
@mrsaicharan1
Copy link
Member Author

@uds5501 @shreyanshdwivedi @CosmicCoder96 I've checked in this locally and can confirm that it hits the sanbox API for test mode and live API for live mode. Please do confirm this.

Copy link
Member

@kushthedude kushthedude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix CI

kushthedude
kushthedude previously approved these changes Aug 29, 2019
uds5501
uds5501 previously approved these changes Aug 29, 2019
@mrsaicharan1
Copy link
Member Author

@CosmicCoder96 The paypal button requires the environment parameter to be production instead of live.
env : this.settings.paypalMode === 'sandbox' ? this.settings.paypalMode : 'production'

@mrsaicharan1
Copy link
Member Author

@abhinavk96 abhinavk96 merged commit 25b1a76 into fossasia:development Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Checks required for sandbox/live Paypal API routing

5 participants