Skip to content

How to use the SDK with Subscriptions? #203

Answered by AleFossati
Bullrich asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Bullrich, we can't exactly show you how to create a subscription with sdk-js because this sdk is a frontend product so the subscription creation is not done using it.

The flow is something like this:

  • Frontend: Use the sdk-js with CardPayment Brick to generate the token
  • Frontend: Send this token to backend (along with other relevant information obtained from the frontend)
  • Backend: Use the obtained data to create your subscription. For this step, you can make a http request just like you did or use our Mercado Pago backend SDKs.

I can see that you have already opened a new discussion at our NodeJS SDK, so my suggestion is to wait their response to understand what might be going wro…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Bullrich
Comment options

@AleFossati
Comment options

Answer selected by AleFossati
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants