View Source Hyperswitch.PaymentMethods (hyperswitch v0.1.0)

Link to this section Summary

Functions

To create a payment method against a customer object. In case of cards, this API could be used only by PCI compliant merchants.

Delete payment method.

To retrieve a payment method.

To filter and list the applicable payment methods for a particular Merchant ID or Customer ID.

To update an existing payment method attached to a customer object. This API is useful for use cases such as updating the card number for expired cards to prevent discontinuity in recurring payments.

Link to this section Types

Link to this type

account_or_customer_id()

View Source
@type account_or_customer_id() ::
  Hyperswitch.Accounts.account_id() | Hyperswitch.Customers.customer_id()
Link to this type

create_method_params()

View Source
@type create_method_params() :: map()
Link to this type

create_method_response()

View Source
@type create_method_response() :: Hyperswitch.Client.response()
Link to this type

delete_method_response()

View Source
@type delete_method_response() :: Hyperswitch.Client.response()
@type get_method_response() :: Hyperswitch.Client.response()
@type method_id() :: binary()
Link to this type

update_method_params()

View Source
@type update_method_params() :: map()
Link to this type

update_method_response()

View Source
@type update_method_response() :: Hyperswitch.Client.response()

Link to this section Functions

@spec create_method(create_method_params()) :: create_method_response()

To create a payment method against a customer object. In case of cards, this API could be used only by PCI compliant merchants.

Link to this function

delete_method(method_id)

View Source
@spec delete_method(method_id()) :: delete_method_response()

Delete payment method.

@spec get_method(method_id()) :: get_method_response()

To retrieve a payment method.

Link to this function

get_method(account_or_customer_id, params \\ [])

View Source
@spec get_method(
  account_or_customer_id(),
  keyword()
) :: get_method_response()

To filter and list the applicable payment methods for a particular Merchant ID or Customer ID.

Link to this function

update_method(method_id, body)

View Source
@spec update_method(method_id(), create_method_params()) :: update_method_response()

To update an existing payment method attached to a customer object. This API is useful for use cases such as updating the card number for expired cards to prevent discontinuity in recurring payments.