Skip to content
Permalink
Browse files

More metadata and description to the payment

  • Loading branch information...
joamag committed Sep 12, 2019
1 parent d1eeedc commit 444741e033844347f6999a1235267ac7ce1fda0c
Showing with 13 additions and 1 deletion.
  1. +13 −1 src/budy/models/order.py
@@ -1297,7 +1297,19 @@ def _pay_stripe_sca(self, payment_data):
pay_url = payment_data.get("stripe_sca_pay_url", pay_url)
return_url = payment_data.get("return_url", None)
return_url = payment_data.get("stripe_sca_return_url", return_url)
intent = api.create_intent(int(self.payable * 100), self.currency)
intent = api.create_intent(
int(self.payable * 100),
self.currency,
description = self.reference,
metadata = dict(
order = self.reference,
email = self.email,
ip_address = self.ip_address,
ip_country = self.ip_country,
first_name = self.shipping_address.first_name,
last_name = self.shipping_address.last_name
)
)
identifier = intent["id"]
secret = intent["client_secret"]
query = "secret=%s&return_url=%s" % (

0 comments on commit 444741e

Please sign in to comment.
You can’t perform that action at this time.