Sha256: b79cb5a72757eb0e4a823c5f0c1d925b4de4ecce7eff9b08403378762ac86b69
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
module Paysafe module Api class PaymentsApi < BaseApi def get_payment_methods(currency_code:) perform_get_with_object("/paymenthub/v1/paymentmethods?currencyCode=#{currency_code}", PaymentMethods) end def create_customer(**data) perform_post_with_object("/paymenthub/v1/customers", data, Customer) end def create_single_use_customer_token(id:) perform_post_with_object("/paymenthub/v1/customers/#{id}/singleusecustomertokens", {}, SingleUseCustomerToken) end def create_payment(**data) perform_post_with_object("/paymenthub/v1/payments", data, Payment) end def create_standalone_credit(**data) perform_post_with_object("/paymenthub/v1/standalonecredits", data, StandaloneCredit) end def get_customer(id:) perform_get_with_object("/paymenthub/v1/customers/#{id}", Customer) end def get_payment(id:) perform_get_with_object("/paymenthub/v1/payments/#{id}", Payment) end def get_standalone_credit(id:) perform_get_with_object("/paymenthub/v1/standalonecredits/#{id}", StandaloneCredit) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paysafe-0.16.0 | lib/paysafe/api/payments_api.rb |
paysafe-0.15.0 | lib/paysafe/api/payments_api.rb |