Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update Bango billing endpoint

  • Loading branch information...
commit c86f93df4ec1b1af27fd902ce859fa85ef052a41 1 parent dcb9508
Kumar McMillan kumar303 authored
Showing with 3 additions and 6 deletions.
  1. +1 −1  lib/solitude/api.py
  2. +2 −5 webpay/pay/tests/test_tasks.py
2  lib/solitude/api.py
View
@@ -157,7 +157,7 @@ def configure_product_for_billing(self, webpay_trans_id,
log.info('transaction %s: bango product: %s'
% (webpay_trans_id, bango_product_uri))
- res = self.slumber.bango('create-billing').post({
+ res = self.slumber.bango.billing.post({
'pageTitle': product_name,
'price_currency': currency,
'price_amount': str(amount),
7 webpay/pay/tests/test_tasks.py
View
@@ -284,15 +284,12 @@ def update(self, **kw):
self.trans = Transaction.objects.get(pk=self.trans.pk)
def set_billing_id(self, slumber, num):
- # Set up a call to /bango/billing-config
- billing = mock.Mock()
- slumber.bango.return_value = billing
- billing.post.return_value = {
+ slumber.bango.billing.post.return_value = {
'resource_pk': '3333',
'billingConfigurationId': num,
'responseMessage': 'Success',
'responseCode': 'OK',
- 'resource_uri': '/bango/create-billing/3333/'
+ 'resource_uri': '/bango/billing/3333/'
}
@raises(tasks.TransactionOutOfSync)
Please sign in to comment.
Something went wrong with that request. Please try again.