Add Application payment🔗
Study the “General Information” and the “Signature Verification” sections first.
Getting a list of an application In-app payments which are created in the MRGS admin panel.
Parameters🔗
| Parameter | Method | Value | Mandatory | Type | Description |
|---|---|---|---|---|---|
| action | GET | add_application_payments | yes | string | Command |
| appId | GET | 38 | yes | number | Application ID |
| bundleId | GET | ru.akeb.framework.subs1 | yes | string | Payment Bundle ID |
| price | GET | 2.99 | yes | number | Price in USD |
| billing | GET | 0 | no | number | Store |
| title_ru | GET | Подписка на месяц | no | string | Payment name in Russian |
| title_en | GET | Subscription for month | no | string | Payment name in English |
| flags | GET | 0 | no | number | Payment Flags (Bitfield) |
Error codes🔗
| Code | Description |
|---|---|
| -30 | Unexpected error. Contact technical specialists. |
| -31 | Application ID not passed. |
| -32 | Payment Bundle ID not passed. |
| -33 | Payment price not passed. |
| -34 | Invalid payment flag. |
| -35 | Invalid payment store. |
Request example🔗
https://mrgs.astrum.team/pub/s2s.php?action=add_application_payments&appId=38&bundleId=ru.akeb.framework.subs1&price=2.99&format=json&hash=c6b2a8ccba886ba77f257978e5c22dc1
Payment Billing (Store)
- 0 - Google
- 1 - Samsung
- 2 - Amazon
- 3 - MyStore
- 4 - Bazaar
Payment flags (If you need to specify 2 flags, you need to send the amount. For example, if the payment is a test and is a subscription, then send 5)
- 1 - Test payment
- 2 - Video payment
- 4 - Subscription
Response example🔗
{
"status": 0,
"error": "",
"result": {
"id": 3054,
"app_id": 38,
"title_ru": "Подписка на месяц",
"title_en": "Subscription for month",
"bundle_id": "ru.akeb.framework.subs1",
"price": 0.00,
"billing": 0,
"flags": 4,
}
}
Last update: 2025-01-21
Created: 2020-03-23
Created: 2020-03-23