Subversion Repositories SmartDukaan

Rev

Rev 3666 | Rev 3768 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3666 Rev 3724
Line 60... Line 60...
60
 
60
 
61
def create_payment(user, amount , txn_id, rtgs_id, rtgs_bank, rtgs_branch, ifsc):
61
def create_payment(user, amount , txn_id, rtgs_id, rtgs_bank, rtgs_branch, ifsc):
62
    payment_id = payment_client.createPayment(user.userId, amount, RTGS_GATEWAY_ID, txn_id)
62
    payment_id = payment_client.createPayment(user.userId, amount, RTGS_GATEWAY_ID, txn_id)
63
    payment_client.getPayment(payment_id)
63
    payment_client.getPayment(payment_id)
64
    attributes = []
64
    attributes = []
65
    attributes.append(Attribute(PAYMETHOD_ATTR, 'RTGS'))
65
    attributes.append(Attribute(PAYMETHOD_ATTR, '4000'))
66
    attributes.append(Attribute(RTGS_ID_ATTR, str(rtgs_id)))
66
    attributes.append(Attribute(RTGS_ID_ATTR, str(rtgs_id)))
67
    attributes.append(Attribute(RTGS_BANK_ATTR, rtgs_bank))
67
    attributes.append(Attribute(RTGS_BANK_ATTR, rtgs_bank))
68
    attributes.append(Attribute(RTGS_BRANCH_ATTR, rtgs_branch))
68
    attributes.append(Attribute(RTGS_BRANCH_ATTR, rtgs_branch))
69
    attributes.append(Attribute(IFSC_ATTR, str(ifsc)))
69
    attributes.append(Attribute(IFSC_ATTR, str(ifsc)))
70
    payment_client.updatePaymentDetails(payment_id, None, None, None, None, None, None, None, None, PaymentStatus.SUCCESS, None, attributes)
70
    payment_client.updatePaymentDetails(payment_id, None, None, None, None, None, None, None, None, PaymentStatus.SUCCESS, None, attributes)