![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Welcome to the Payture for Ruby gem! This gem allows you to integrate Payture into your Ruby application (Rails, etc.)
Add this line to your application's Gemfile:
gem 'payture_ruby'
And then execute:
$ bundle
Or install it yourself as:
$ gem install payture_ruby
In your code you will need to require the gem:
require 'payture'
HOST = ENV['PAYTURE_HOST'] // i.e. sandbox.payture.com
MERCHANT_ADD = ENV['PAYTURE_ADD'] // VWMerchantExampleAdd
payload = {
OrderId: 'ABC123',
SessionType: 'Block',
VWUserLgn: @user.email,
VWUserPsw: @user.token,
Amount: 100
}
wallet = Payture::Wallet.new(HOST)
result = wallet.init(MERCHANT_ADD, payload)
HOST = ENV['PAYTURE_HOST'] // i.e. sandbox.payture.com
MERCHANT_PAY = ENV['PAYTURE_PAY'] // VWMerchantExamplePay
payload = {
OrderId: 'DCB312',
VWUserLgn: @user.email,
VWUserPsw: @user.token,
Amount: 100
CardId: @order.card_id
}
wallet = Payture::Wallet.new(HOST)
result = wallet.pay(MERCHANT_PAY, payload)
HOST = ENV['PAYTURE_HOST'] // i.e. sandbox.payture.com
MERCHANT_ADD = ENV['PAYTURE_ADD'] // VWMerchantExampleAdd
payload = {
VWUserLgn: @user.email,
VWUserPsw: @user.token
}
wallet = Payture::User.new(HOST)
result = wallet.register(MERCHANT_ADD, payload)
HOST = ENV['PAYTURE_HOST'] // i.e. sandbox.payture.com
MERCHANT_ADD = ENV['PAYTURE_ADD'] // VWMerchantExampleAdd
payload = {
VWUserLgn: @user.email,
VWUserPsw: @user.token,
Phone: @user.phone
}
wallet = Payture::User.new(HOST)
result = wallet.update(MERCHANT_ADD, payload)
HOST = ENV['PAYTURE_HOST'] // i.e. sandbox.payture.com
MERCHANT_ADD = ENV['PAYTURE_ADD'] // VWMerchantExampleAdd
payload = {
VWUserLgn: @user.email,
VWUserPsw: @user.token
}
wallet = Payture::User.new(HOST)
result = wallet.check(MERCHANT_ADD, payload)
HOST = ENV['PAYTURE_HOST'] // i.e. sandbox.payture.com
MERCHANT_ADD = ENV['PAYTURE_ADD'] // VWMerchantExampleAdd
PASSWORD = ENV['PAYTURE_PASSWORD']
payload = {
VWUserLgn: @user.email,
password: PASSWORD
}
wallet = Payture::User.new(HOST)
result = wallet.delete(MERCHANT_ADD, payload)
HOST = ENV['PAYTURE_HOST'] // i.e. sandbox.payture.com
MERCHANT_ADD = ENV['PAYTURE_ADD'] // VWMerchantExampleAdd
payload = {
VWUserLgn: @user.email,
VWUserPsw: @user.token
}
wallet = Payture::Cards.new(HOST)
result = wallet.list(MERCHANT_ADD, payload)
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/payture_ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that payture_api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.