class Braintree::Gateway
Attributes
Public Class Methods
Source
# File lib/braintree/gateway.rb, line 5 def initialize(config) if config.is_a?(Hash) @config = Configuration.new config elsif config.is_a?(Braintree::Configuration) @config = config else raise ArgumentError, "config is an invalid type" end @graphql_client = GraphQLClient.new(@config) end
Public Instance Methods
Source
# File lib/braintree/gateway.rb, line 25 def apple_pay ApplePayGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 29 def client_token ClientTokenGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 33 def credit_card CreditCardGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 37 def customer CustomerGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 41 def customer_session CustomerSessionGateway.new(self, graphql_client) end
Source
# File lib/braintree/gateway.rb, line 45 def discount DiscountGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 53 def document_upload DocumentUploadGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 57 def exchange_rate_quote ExchangeRateQuoteGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 93 def merchant MerchantGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 97 def merchant_account MerchantAccountGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 69 def payment_method PaymentMethodGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 73 def payment_method_nonce PaymentMethodNonceGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 77 def paypal_account PayPalAccountGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 81 def paypal_payment_resource PayPalPaymentResourceGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 89 def sepa_direct_debit_account SepaDirectDebitAccountGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 101 def settlement_batch_summary SettlementBatchSummaryGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 105 def subscription SubscriptionGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 117 def testing TestingGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 109 def transaction TransactionGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 113 def transaction_line_item TransactionLineItemGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 85 def us_bank_account UsBankAccountGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 121 def us_bank_account_verification UsBankAccountVerificationGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 125 def verification CreditCardVerificationGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 129 def webhook_notification WebhookNotificationGateway.new(self) end
Source
# File lib/braintree/gateway.rb, line 133 def webhook_testing WebhookTestingGateway.new(self) end