This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "yandex_kassa" | |
require "json" | |
api = YandexKassa.create | |
client_order_id = 0 | |
puts "\nПолучение синонима карты N: 4444 4444 4444 4448" | |
url = "https://demo-scrat.yamoney.ru/gates/card/storeCard" | |
error_url = "https://example.com/error_url" | |
success_url = "https://example.com/success_url" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "yandex_kassa" | |
YandexKassa.configure do |config| | |
#url для тестовой среды Яндекс.Кассы | |
config.url = "https://bo-demo02.yamoney.ru:9094/webservice/deposition/api" | |
#Сертификат присланный вам сотрудником Яндекс.Денег | |
config.cert = "cert.cer" | |
#Сгенерированный вами приватный ключ, который ипользовался для запроса сертификата | |
config.key = "private.key" | |
#Сертификат для среды, к который вы будете делать запросы. Прислан сотрудником Яндекс.Денег |