All Questions

Payment

Hey there stripe users What is the best way to create a stripe payment link and then connect that user with a slack user id? [SOLVED]

I have tried with PaymentLink.create but the metadata is not forwarded in the payment success webhook…

author WBE Member

Reply
7 Answers

I end up finding a solution by adding the field

'description': slack_user_id,
}```
apparently this info is passed to the webhook. but looks a bit like a hack

writen by WBE Member

can’t you pass arbitrary data?

like

'slack_user_id': slack_user_id,
}```

writen by WBE Member

That would make sense right? but no I get this error stripe.error.InvalidRequestError: Request req_bLVol90fAEf37G: Received unknown parameter: subscription_data[slack_user_id]

writen by WBE Member

Try this one WBE Member This is how I add custom data subscription_data: { metadata: { 'description': slack_user_id } },

writen by WBE Member

I tried and got the same error… stripe.error.InvalidRequestError: Request req_Y6blHsNCpAPu19: Received unknown parameter: subscription_data[metadata]

writen by WBE Member

Oh that’s strange.. you tried contacting stripe support or the discord server of stripe ? The dev support there is pretty quick

writen by WBE Member

Might also be an async issue

writen by WBE Member

Do you want to ask a question?


Related Questions