works but cannot change address
This commit is contained in:
@@ -183,7 +183,7 @@ def make_payment(rower,data):
|
||||
return False,0
|
||||
|
||||
amount = data['amount']
|
||||
amount = '{amount:.f2}'.format(amount=amount)
|
||||
amount = '{amount}'.format(amount=amount)
|
||||
|
||||
result = gateway.transaction.sale({
|
||||
"amount": amount,
|
||||
@@ -200,13 +200,18 @@ def make_payment(rower,data):
|
||||
l = rower.user.last_name,
|
||||
)
|
||||
|
||||
fakturoid_contact_id = fakturoid.get_contacts(rower)
|
||||
if not fakturoid_contact_id:
|
||||
fakturoid_contact_id = fakturoid.create_contact(rower)
|
||||
id = fakturoid.create_invoice(rower,amount,transaction.id,dosend=True,contact_id=fakturoid_contact_id,
|
||||
name='Rowsandall Purchase')
|
||||
|
||||
job = myqueue(queuehigh,handle_send_email_transaction,
|
||||
name, rower.user.email, amount)
|
||||
|
||||
return amount,''
|
||||
return amount,True
|
||||
else:
|
||||
return 0,''
|
||||
return 0,False
|
||||
|
||||
def update_subscription(rower,data,method='up'):
|
||||
planid = data['plan']
|
||||
|
||||
Reference in New Issue
Block a user