shop.payment_providers.unzer_paylater_invoice

Attributes

Classes

UnzerPaylaterInvoice

Unzer Paylater Invoice payment method integration for the ViUR Shop.

Module Contents

shop.payment_providers.unzer_paylater_invoice.logger
class shop.payment_providers.unzer_paylater_invoice.UnzerPaylaterInvoice(*args, charge_directly=True, **kwargs)

Bases: shop.payment_providers.unzer_abstract.UnzerAbstract

Unzer Paylater Invoice payment method integration for the ViUR Shop.

Enables customers to pay using invoice through the Unzer payment gateway.

Parameters:
  • args (viur.shop.types.t.Any)

  • charge_directly (bool)

  • kwargs (viur.shop.types.t.Any)

name: viur.shop.types.t.Final[str] = 'unzer-paylater_invoice'
charge_directly = True
can_order(order_skel)
Parameters:

order_skel (viur.shop.types.SkeletonInstance_T[viur.shop.skeletons.OrderSkel])

Return type:

list[viur.shop.types.ClientError]

checkout(order_skel)
Parameters:

order_skel (viur.core.skeleton.SkeletonInstance)

Return type:

viur.shop.types.t.Any

charge(order_skel, payment=None)
Parameters:
  • order_skel (viur.shop.types.SkeletonInstance_T[viur.shop.skeletons.OrderSkel])

  • payment (unzer.PaymentResponse | None)

Return type:

tuple[viur.shop.types.SkeletonInstance_T[viur.shop.skeletons.OrderSkel], unzer.PaymentResponse]

get_customer(order_skel)
Parameters:

order_skel (viur.core.skeleton.SkeletonInstance)

Return type:

unzer.Customer

get_payment_request(order_skel)
Parameters:

order_skel (viur.core.skeleton.SkeletonInstance)

Return type:

unzer.PaymentRequest

get_risk_data(order_skel)
Parameters:

order_skel (viur.core.skeleton.SkeletonInstance)

Return type:

unzer.RiskData

risk_check(order_key)

Customer Risk Check Endpoint

Do a risk check for the customer. Customer risk check is an optional step after the payment method is selected. It is used for the risk evaluation of the end customer data. When sending the request, you must also add the x-CLIENTIP=<YOUR Client’s IP> attribute in the header. This operation is not part of the payment process. Like credit card check, it is used to pre-check customer data immediately after the payment method selection step in the checkout. This way customer receives direct feedback before finishing the order, avoiding irritation. The riskCheck request contains customer resource’s reference and transactional details.

Parameters:

order_key (viur.core.db.Key)

Return type:

viur.shop.types.t.Any

get_payment_type(order_skel)
Parameters:

order_skel (viur.core.skeleton.SkeletonInstance)

Return type:

unzer.PaymentType