コード例 #1
0
def c2b_stk_push_callback_url(data, organization_id=None, reference=None):
    url = reverse('mpesa_c2b_stk_push_callback_url', kwargs={
        "organization_id": organization_id, 
        "reference": reference
    })
    
    return service.post(url, json=data, api_url=settings.MPESA_API_URL)
コード例 #2
0
def b2c_queue_timeout_url(data, organization_id=None, reference=None):
    url = reverse('mpesa_b2c_queue_timeout_url', kwargs={
        "organization_id": organization_id, 
        "reference": reference
    })
    
    return service.post(url, json=data, api_url=settings.MPESA_API_URL)
コード例 #3
0
def balance_check_result_url(data, organization_id=None, reference=None):
    url = reverse('mpesa_balance_check_result_url', kwargs={
        "organization_id": organization_id, 
        "reference": reference
    })
    
    return service.post(url, json=data, api_url=settings.MPESA_API_URL)