Notification examples. Onebip Mobile Payment System
تبلیغات
تبلیغات
3.2.1.4
Notification examples
The examples following are the series of examples to represent you all the different business cases related to a subscription-based service, with the consequent notifications that you will receive.
Subscription activation succeeded
Following a specific request received from you, Onebip will send two notifications to you: the event of activation, the first billing.
{
“what”: “SUBSCRIPTION_ACTIVATED” ,
“to_url”: “ http://www.webgame.com/notify.php
“,
“container”: “ “ subscription/20332b9ca4er34aa3g3d3r19 ”,
“service_id”: “
5012b69ca4ee4aa3f3d3r415
”,
“mobile_phone_number_enc”: “88504199e070fc43d2ca1f4896f24b1b”
}
{
“what”: “BILLING_COMPLETED” ,
“to_url”: “ http://www.webgame.com/notify.php
“,
“business_model”: “ subscription_activation “,
“container”: “ subscription/20332b9ca4er34aa3g3d3r19 ”,
“payment_id”: “ 23dtle561129ij562jn5tg44 ”,
“transaction_id”: “ 84332uu3b56nwa4398il762r ”,
“mobile_phone_number_enc”: “88504199e070fc43d2ca1f4896f24b1b” ,
“country”: “US” ,
“currency”: “USD” ,
“price”: 5
}
Subscription activation failed
When a subscription process is not completed successfully, in most cases because it was not possible to charge your customer, or there was a problem with the mobile network operator, Onebip will send two notifications to you:
{
“what”: “SUBSCRIPTION_CANCELED” ,
“to_url”: “ http://www.webgame.com/notify.php
“,
“container”: “ subscription/11132555a4er3faa3g3d3fff ”,
“service_id”: “
5012b69ca4ee4aa3f3d3r415
”,
“mobile_phone_number_enc”: “88504199e070fc43d2ca1f4896f24b1b” ,
}
26
Integration Guide 4.0
{
“what”: “BILLING_ABORTED” ,
“to_url”: “ http://www.webgame.com/notify.php
“,
“business_model”: “ subscription_activation “,
“container”: “ subscription/11132555a4er3faa3g3d3fff ”,
“payment_id”: “ 23dtle561129ij562jn5tg44 ”,
“transaction_id”: “ 84332uu3b56nwa4398il762r ”,
“mobile_phone_number_enc”: “88504199e070fc43d2ca1f4896f24b1b” ,
“country”: “US” ,
“currency”: “USD” ,
“price”: 5
}
Subscription renewal succeeded
This is called a
“push” operation generated by Onebip after a completed renewal of an active subscription. The notification towards you will be about the payment completed.
{
“what”: “BILLING_COMPLETED” ,
“to_url”: “ http://www.webgame.com/notify.php
“,
“business_model”: “ subscription_renewal “,
“container”: “ subscription/20332b9ca4er34aa3g3d3r19 ”,
“payment_id”: “ 00rtlaa31129inn3y7t5tg21 ”,
“transaction_id”: “ 06312uaa55690op398ilwq30 ”,
“mobile_phone_number_enc”: “88504199e070fc43d2ca1f4896f24b1b” ,
“country”: “US” ,
“currency”: “USD” ,
“price”: 5
}
Subscription renewal failed
This notification is sent when the renewal attempt of a subscription service is failed because it was not possible to charge your customer.
{
“what”: “BILLING_ABORTED” ,
“to_url”: “ http://www.webgame.com/notify.php
“,
“business_model”: “ subscription_renewal ”,
“container”: “ subscription/20332b9ca4er34aa3g3d3r19 ”,
“transaction_id”: “ 00132uuaa56nwa4398il732a ”,
“mobile_phone_number_enc”: “88504199e070fc43d2ca1f4896f24b1b” ,
“country”: “US” ,
“currency”: “USD” ,
“price”: 5
}
27
Integration Guide 4.0
دانلود
تبلیغات