
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
/lib
/atos
/bin
request
request_2.4.18_2.96
....
/param
certif.fr.014295303911111
parmcom.014295303911111
parmcom.*
pathfile
@request = Atos.new.request(
:merchant_id => '014295303911111',
:amount => '1500',
:customer_id => 'YOUR_CUSTOMER_ID',
:automatic_response_url => 'http://YOUR_SITE.com/ANY/LISTENING/URL/YOU/WANT',
:normal_return_url => 'http://YOUR_SITE.com/NORMAL/RETURN/URL',
:cancel_return_url => 'http://YOUR_SITE.com/CANCEL/URL'
)
----- Let the customer pay on the bank platform, then listen to its response ----
response = Atos.new.response(params[:DATA])
{
:code
:error
:merchant_id
:merchant_country
:amount
:transaction_id
:payment_means
:transmission_date
:payment_time
:payment_date
:response_code
:payment_certificate
:authorisation_id
:currency_code
:card_number
:cvv_flag
:cvv_response_code
:bank_response_code
:complementary_code
:complementary_info
:return_context
:caddie
:receipt_complement
:merchant_language
:language
:customer_id
:order_id
:customer_email
:customer_ip_address
:capture_day
:capture_mode
:data
}
merchant_id, amount, customer_id, automatic_response_url, normal_return_url and cancel_return_url are required to push a request, but you can freely add others (shopping cart, customer email...), according to the API docs.
Default language is set to 'fr' and currency to 'Euro', simply pass your own 'locale/currency' in the request to override.
I prefer conventions over configuration, but you can also override with your own path dirs while instanciating the Atos class. You just add one step to the shortand way :
@request = Atos.new(
:root_path => '/where',
:request_path => '/where/ever',
:response_path => '/where/ever/you',
:pathfile_path => '/where/ever/you/want'
)
...And then...
@request.request(
:merchant_id => '014295303911111',
:amount => '1500',
:customer_id => YOUR_CUSTOMER_ID,:automatic_response_url=>'http://YOUR_SITE.com/ANY/LISTENING/URL/YOU/WANT',
:normal_return_url => 'http://YOUR_SITE.com/NORMAL/FALLBACK/URL',
:cancel_return_url => 'http://YOUR_SITE.com/CANCEL/URL'
)
Don't forget to check at the 'pathfile' Atos file, and fill requested paths according to your app absolute location on the server
Drop the credit card logos in a public dir, then fill this directory's absolute location on the server in the '/lib/atos/param/pathfile' file
The '014295303911111' merchant_id I use all the way here is the test merchant_id, obviously, use you own.
FAQs
Unknown package
We found that atos 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.