浏览代码

Merge branch 'staging'

pull/2/head
Nabin Hait 7 年前
父节点
当前提交
2bb776b1b4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      payments/payment_gateways/doctype/stripe_settings/stripe_settings.py

+ 2
- 2
payments/payment_gateways/doctype/stripe_settings/stripe_settings.py 查看文件

@@ -7,7 +7,7 @@ import frappe
from frappe.model.document import Document from frappe.model.document import Document
from frappe import _ from frappe import _
from six.moves.urllib.parse import urlencode from six.moves.urllib.parse import urlencode
from frappe.utils import get_url, call_hook_method, cint
from frappe.utils import get_url, call_hook_method, cint, flt
from frappe.integrations.utils import make_get_request, make_post_request, create_request_log, create_payment_gateway from frappe.integrations.utils import make_get_request, make_post_request, create_request_log, create_payment_gateway


class StripeSettings(Document): class StripeSettings(Document):
@@ -62,7 +62,7 @@ class StripeSettings(Document):
"Bearer {0}".format(self.get_password(fieldname="secret_key", raise_exception=False))} "Bearer {0}".format(self.get_password(fieldname="secret_key", raise_exception=False))}
data = { data = {
"amount": cint(self.data.amount)*100,
"amount": cint(flt(self.data.amount)*100),
"currency": self.data.currency, "currency": self.data.currency,
"source": self.data.stripe_token_id, "source": self.data.stripe_token_id,
"description": self.data.description "description": self.data.description


正在加载...
取消
保存