All Questions


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 Tiago Ferreira

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 Tiago Ferreira

can’t you pass arbitrary data?


'slack_user_id': slack_user_id,

writen by Luca Restagno (ikoichi on Twitter)

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 Tiago Ferreira

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

writen by Goutham J

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

writen by Tiago Ferreira

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

writen by Goutham J

Might also be an async issue

writen by Benedikt

Do you want to ask a question?

Related Questions