undr / cloud_payments Goto Github PK
View Code? Open in Web Editor NEWCloudPayments ruby client
Home Page: http://cloudpayments.eu/Docs/Integration
License: MIT License
CloudPayments ruby client
Home Page: http://cloudpayments.eu/Docs/Integration
License: MIT License
https://cloudpayments.ru/docs/api/kassa
Do you have integration with that?
Would you accept PR which passes Frozen String Literal cop from rubocop?
It would be help to upgrade to ruby 3.0.
Коллеги, что скажите на счет такого:
class CloudPayments::Client::ReasonedGatewayError
def message
key = self.class.name.split('::').last
I18n.t key, scope: 'cloud_payments.errors'
end
end
class CloudPayments::Transaction
def amount_money
amount.to_money(currency)
end
end
Стоит вливать в gem?
Недавно в этом месте:
cloud_payments/lib/cloud_payments/namespaces/base.rb
Lines 38 to 40 in c6f5ed6
Несколько раз выскочило NoMethodError · undefined method
new' for nil:NilClass`
Предлагаю такое решение:
def raise_reasoned_gateway_error(body)
return unless reason_present?(body)
error_class = Client::GATEWAY_ERRORS[body[:model][:reason_code]]
fail error_class.new(body) if error_class
end
@undr could you please publish v0.0.4
on rubygems?
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.