liqpay / sdk-ruby Goto Github PK
View Code? Open in Web Editor NEWLiqPay ruby sdk
LiqPay ruby sdk
Кнопка не отображается. Рут картинки http://static.liqpay.ua/buttons/p1uk.radius.png
.
После успешной оплаты запрос на localhost (Сервер) не происходит :(
В отчетах кабинета liqpay - адрес верный, но запроса нет
Hi!
I am getting err_access error, which does not explain anything. What does it mean? Anyone has the similar issue?
{"result"=>"ok", "status"=>"error", "err_code"=>"err_access", "err_description"=>"err access"}
Hello,
it would be really great if you could release it as a gem to rubygems. One of my gems depends on it (https://github.com/mbajur/offsite_payments_liqpayv3) and it's impossible to specify dependencies as a github repos.
Thanks!
Формирование сигнатуры
Подставляю ваши даные
def liqpay_test
secrets = Rails.application.secrets
liqpay_full = Liqpay::Liqpay.new(
:host => 'https://www.liqpay.com/api/',
:private_key => 'private_key',
:public_key => 'public_key'
)
liqpay_full.cnb_form(
:amount => "1.2",
:currency => "USD",
:description => "my comment",
:language => "en"
)
end
Сигнатура такая как в тестах
Когда формирую форму со своими данными
<form method="post" action="https://www.liqpay.com/api/pay" accept-charset="utf-8"> <input type="hidden" name="order_id" value="10-1405263172-send_cv"> <input type="hidden" name="amount" value="300"> <input type="hidden" name="currency" value="UAH"> <input type="hidden" name="description" value="Send my CV: Voloshin Ruslan ([email protected])"> <input type="hidden" name="sandbox" value="1"> <input type="hidden" name="type" value="buy"> <input type="hidden" name="server_utl" value="http://icrewing.com/orders/confirm"> <input type="hidden" name="return_url" value="http://icrewing.com/orders/status/10-1405263172-send_cv"> <input type="hidden" name="public_key" value="i74346430130"> <input type="hidden" name="signature" value="6imi1pW1Sj3iSPQuabkyAAORa/c="> <input type="image" src="//static.liqpay.com/buttons/p1ru.radius.png" name="btn_text"> </form>
Ваш сервег пишет что сигнатура не верная, не могли бы вы проверить правильность работы подписывания.
Хотя странно, пару раз у меня она оказывалась верной.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.