BlackBoxVision / react-native-mercadopago-px

🚀 MercadoPago PX bridge for react-native
https://react-native-mercadopago-px.blackbox-vision.tech
MIT License
104 stars 24 forks source link

[Example] - Marketplace implementation #14

Open JonatanSalas opened 4 years ago

JonatanSalas commented 4 years ago

Motivation

sgobotta commented 4 years ago

Hello! I'm working on some features for coopcycle-app and we'd like to know how can we be useful regarding this feature.

JonatanSalas commented 4 years ago

Hi @sgobotta, I'll answer point by point:

We're currently with tons of work, I suppose that we're going to revisit this and the other issues we've left in the next week, because we want to iterate everything so we can reach a v1 stable, with feature parity with MP Native SDKs.

sgobotta commented 4 years ago

Hi @sgobotta, I'll answer point by point:

  • Currently it isn't possible to do it

  • We haven't had time to evaluate the approach and how to modify the current code we've in order to adapt and support it

  • No

We're currently with tons of work, I suppose that we're going to revisit this and the other issues we've left in the next week, because we want to iterate everything so we can reach a v1 stable, with feature parity with MP Native SDKs.

Hi @JonatanSalas. Glad to hear it's been scheduled! I just wanted to let you know we're up to contribute in any way we can.

alexsegura commented 4 years ago

As discussed with @sgobotta, it looks like the split has to be done server side in any case.

Using the marketplace_fee prop of the Preference API https://www.mercadopago.com.br/developers/es/reference/preferences/_checkout_preferences/post/

JonatanSalas commented 4 years ago

If you want, we can schedule a meeting for the next week to see how we can collaborate together in order to put an example client/server-side related to marketplace.

sgobotta commented 4 years ago

Sounds good to me. Meanwhile I'll be trying out @alexsegura example

alexsegura commented 4 years ago

The problem is that we are using authorize/capture later mechanism, and with a Preference I don't see how to do it.