Переглянути джерело

fix: stripe api payment receipt email

pull/2/head
Mangesh-Khairnar 5 роки тому
джерело
коміт
8a4169fd0b
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      payments/payment_gateways/doctype/stripe_settings/stripe_settings.py

+ 1
- 1
payments/payment_gateways/doctype/stripe_settings/stripe_settings.py Переглянути файл

@@ -76,7 +76,7 @@ class StripeSettings(Document):
def create_charge_on_stripe(self):
import stripe
try:
charge = stripe.Charge.create(amount=cint(flt(self.data.amount)*100), currency=self.data.currency, source=self.data.stripe_token_id, description=self.data.description)
charge = stripe.Charge.create(amount=cint(flt(self.data.amount)*100), currency=self.data.currency, source=self.data.stripe_token_id, description=self.data.description, receipt_email=self.data.payer_email)

if charge.captured == True:
self.integration_request.db_set('status', 'Completed', update_modified=False)


Завантаження…
Відмінити
Зберегти