Payments🔗
Study the “General Information” and the “Signature Verification” sections first.
For more information on payments, see the "Payments" section.
Attention
Payment request can be sent more than once. If the server has already issued this payment, you still need to return a positive response so that the payment is closed on the MRGS end and the request is no longer sent to the game server.
Payment statuses:
- 0 - Payment made
- 1 - Payment closed
- 2 - Not an in-app payment
- 3 - Payment not verified
- 4 - Payment canceled
If status has a value of 4, you need to cancel the user's payment. That is, cancel the accrual for the user.
Payment details:
[payment] => Array (
[id] => 22
[appId] => 38
[deviceId] => 7a094faa0667549d6d39d65b1736d0be064730c4
[userId] => 87bdfdc480c8b629e157839e75fdf2e0
[transactionId] => 1000000059221938
[devicePlatform] => x86_64
[platform] => iOS
[country] => RU
[money] => 0.99
[status] => 0
[sandbox] => 1
[appVersion] => 1.1
[appBuild] => 700
[stime] => 1353940338
[transactionIdentifier] => ru.akeb.framework.testConsumable
[source] =>
[productlocale] => ru_RU@currency=RUB
[productTitle] => Test Consumable
[productDescription] => Test ru.akeb.framework.testConsumable
[productPrice] => 33
[atime] => 1353940343
[originalTransactionId] => 1000000059221938
[expires_date] => 1503940343
[developerPayload] => '{"userId": "87bdfdc480c8b629e157839e75fdf2e0"}'
[paymentRUB] => 579.53999999999996
[paymentUSD] => 10.23
[paymentEUR] => 8.3699999999999992
),
[appId] => 38,
[appVersion] => 1.0.3,
[requestUserId] => e7b9bdd689f099cb0490ab6a25e0139b,
[user] => Array (...),
[device_application] => Array (...),
[device] => Array (...)
If your server successfully processed the request, you need to return the JSON string {"status": 0, "error": ""}. Otherwise, you can return a negative status and the error message {"status": -19, "error": "There is no such character!" }.
Created: 2020-01-16