コード例 #1
0
 def testverify(self):
     fundingsources.verify(0.03,
                           0.02,
                           '123456',
                           alternate_token='AN OAUTH TOKEN',
                           dwollaparse='dwolla')
     fundingsources.r._post.assert_any_call('/fundingsources/123456', {
         'deposit2': 0.02,
         'deposit1': 0.03
     }, {
         'alternate_token': 'AN OAUTH TOKEN',
         'dwollaparse': 'dwolla'
     })
コード例 #2
0
 def testverify(self):
     fundingsources.verify(0.03, 0.02, '123456')
     fundingsources.r._post.assert_any_call('/fundingsources/123456', {'deposit2': 0.02, 'oauth_token': 'AN OAUTH TOKEN', 'deposit1': 0.03}, dwollaparse='dwolla')
コード例 #3
0
#         "Id": "34da835f235cd25302ef0c5c1cb1d4b9",
#         "Name": "My Bank",
#         "Type": "Checking",
#         "Verified": false,
#         "ProcessingType": "ACH"
# }


# Example 4: Verify the newly created account with via
# the two micro-deposits.
#
# '0.04' is the first deposit.
# '0.02' is the second deposit.
# '12345678' is the account number.

print(fundingsources.verify(0.04, 0.02, '12345678'))
# Return:
# {
#         "Id": "12345678",
#         "Name": "My Checking Account - Checking",
#         "Type": "Checking",
#         "Verified": true,
#         "ProcessingType": "ACH"
# }


# Example 5: Withdraw $5 from Dwolla to funding ID
# '12345678'.

print(fundingsources.withdraw(5.00, '12345678'))
# Return: 
コード例 #4
0
# {
#         "Id": "34da835f235cd25302ef0c5c1cb1d4b9",
#         "Name": "My Bank",
#         "Type": "Checking",
#         "Verified": false,
#         "ProcessingType": "ACH"
# }

# Example 4: Verify the newly created account with via
# the two micro-deposits.
#
# '0.04' is the first deposit.
# '0.02' is the second deposit.
# '12345678' is the account number.

print(fundingsources.verify(0.04, 0.02, '12345678'))
# Return:
# {
#         "Id": "12345678",
#         "Name": "My Checking Account - Checking",
#         "Type": "Checking",
#         "Verified": true,
#         "ProcessingType": "ACH"
# }

# Example 5: Withdraw $5 from Dwolla to funding ID
# '12345678'.

print(fundingsources.withdraw(5.00, '12345678'))
# Return:
# {