Skip to content

Commit

Permalink
link Stripe Customers to Liberapay Participants
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Dec 10, 2024
1 parent ba09cf7 commit 6c3721c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions liberapay/models/exchange_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def attach_stripe_payment_method(cls, participant, pm, one_off):
else:
customer_id = stripe.Customer.create(
email=participant.get_email_address(),
metadata={'participant_id': participant.id},
payment_method=pm.id,
preferred_locales=[participant.email_lang],
idempotency_key='create_customer_for_participant_%i_with_%s' % (
Expand Down

0 comments on commit 6c3721c

Please sign in to comment.