shop.payment_providers.prepayment¶
Module Contents¶
Classes¶
Prepayment method for the ViUR Shop. |
|
Prepayment method for the ViUR Shop. |
Attributes¶
- shop.payment_providers.prepayment.logger¶
- class shop.payment_providers.prepayment.Prepayment(*, image_path=None, is_available=None)¶
Bases:
shop.payment_providers.PaymentProviderAbstractPrepayment method for the ViUR Shop.
Allows customers to place orders with the agreement to pay in advance. The order is marked as ready to ship (RTS) once payment is received.
The customer pays this order in the next x days, shipping will wait.
- Note:
Payment receipt verification (The customer pays this order in the next x days, shipping will wait) is handled externally and not within this module.
- Parameters:
image_path (str | None)
is_available (t.Callable[[t.Self, SkeletonInstance_T[viur.shop.skeletons.order.OrderSkel] | None], bool] | None)
- name: Final[str] = 'prepayment'¶
- checkout(order_skel)¶
- Parameters:
order_skel (shop.types.SkeletonInstance_T[shop.skeletons.OrderSkel])
- Return type:
None
- charge()¶
- Return type:
None
- check_payment_state(order_skel)¶
Check the payment state from the PaymentProvider API/service
Access
OrderSkel.is_paidto get the payment state of an order.- Parameters:
order_skel (viur.core.skeleton.SkeletonInstance)
- Return type:
tuple[bool, Any]
- return_handler()¶
- webhook()¶
- get_debug_information()¶
- class shop.payment_providers.prepayment.PrePayment(*, image_path=None, is_available=None)¶
Bases:
PrepaymentPrepayment method for the ViUR Shop.
Allows customers to place orders with the agreement to pay in advance. The order is marked as ready to ship (RTS) once payment is received.
The customer pays this order in the next x days, shipping will wait.
- Note:
Payment receipt verification (The customer pays this order in the next x days, shipping will wait) is handled externally and not within this module.
- Parameters:
image_path (str | None)
is_available (t.Callable[[t.Self, SkeletonInstance_T[viur.shop.skeletons.order.OrderSkel] | None], bool] | None)