Rustore docs https://help.rustore.ru/rustore/for_developers/worki_with_RuStore_API
You need company_id and the rsa key obtained from the RuStore console to initialize the client
client = RustoreApi::Client.new(
company_id: "123456",
private_key: 'MIIEvQIBADANBgkqhkiG9...'
)
Method of obtaining an authorization token
client.authorize!
Method of receiving a payment by its subscription_token
client.payment_data(subscription_token)
Method of obtaining subscription data by payment ID
client.subscription_by_invoice_id(invoice_id)
Method of obtaining subscription data by payment ID (V2)
client.subscription_by_purchase_token(package_name, subscription_id, purchase_token)
Method of obtaining subscription status by payment ID
client.subscription_state(invoice_id)
This is a demo version of the gem, you can participate in its development. See CONTRIBUTING.