Skip to main content

Getting available methods

In this payment gateway, user will select preferred payment option directly in payment gateway and NOT in eshop. Therefor you want to inform customer about available payment methods and show different text or image based on certain conditions like:

  • currency
  • total amount
  • country

For this purpose you can retrieve available payment methods with this helper:

from tatrapayplus.client import TBPlusSDK

client = TBPlusSDK(
"your-client-id",
"your-client-secret",
)

# Get all available payment methods for this transaction
methods = client.get_available_payment_methods(currency_code="EUR", country_code="SK", total_amount=10)

Based on response from these functions you should display info to the user about available methods, and then you should create payment.