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

[Feature] - Add support for Discount configuration #23

Open
JonatanSalas opened this issue Aug 26, 2020 · 2 comments
Open

[Feature] - Add support for Discount configuration #23

JonatanSalas opened this issue Aug 26, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request platform:android Issues related to Android code platform:ios Issues related to IOS code platform:javascript Issues related to Javascript code priority:high Prioridad alta de la issue

Comments

@JonatanSalas
Copy link
Member

Motivation

  • Enable developers to manage discounts via Javascript API

Draft API

We've in mind the following API:

const payment = await MercadoPagoCheckout.createPayment({
    publicKey: Env.MP_PUBLIC_KEY,
    preferenceId: `your_preference_id`,
    discountOptions: {
       campaignId: 'id',
       couponAmount: 100 
    }
});
@JonatanSalas JonatanSalas added enhancement New feature or request platform:ios Issues related to IOS code platform:android Issues related to Android code platform:javascript Issues related to Javascript code priority:high Prioridad alta de la issue labels Aug 26, 2020
@JonatanSalas JonatanSalas self-assigned this Aug 26, 2020
@JonatanSalas JonatanSalas changed the title [Feature] - Add support for Discount's [Feature] - Add support for DiscountConfiguration Aug 26, 2020
@JonatanSalas JonatanSalas changed the title [Feature] - Add support for DiscountConfiguration [Feature] - Add support for Discount configuration Aug 26, 2020
@restoker
Copy link

restoker commented Sep 3, 2020

Hello, How to handle pending payments?

@JonatanSalas
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request platform:android Issues related to Android code platform:ios Issues related to IOS code platform:javascript Issues related to Javascript code priority:high Prioridad alta de la issue
Projects
None yet
Development

No branches or pull requests

2 participants