Givecloud

This class is instantiated and configured automatically by the content_for_header object in your layout.

Instance Methods

Method Name Description
Cart(id: string = this.config.cart_id): Promise<CartEndpoint> Retrieve a CartEndpoint instance for a given cart id.
Gateway(provider = this.config.provider): Promise<Gateway> Retrieve a Gateway instance for a given provider.
PaymentTypeGateway(paymentType: 'credit_card' | 'bank_account' | 'paypal'): Promise<Gateway> Retrieve a Gateway instance for a given payment type.

Properties

Property Name Type
config Config instance
Account AccountEndpoint instance
Services ServicesEndpoint instance
CardholderData CardholderData