Did I find the right examples for you? yes no

All Samples(8)  |  Call(5)  |  Derive(0)  |  Import(3)

src/g/e/getpaid.pxpay-0.5/src/getpaid/pxpay/browser/callback.py   getpaid.pxpay(Download)
     IPXPayWebInterfaceGateway, IPXPayInvalidMessageError, \
     IPXPayNetworkError, ICheckoutContext
from getpaid.pxpay.exceptions import PXPayException, PXPayNetworkException, \
     PXPayInvalidMessageException
from getpaid.pxpay.config import RETURNED_TEST_CARD_NUMBER, TEST_SERVER_TYPE
        encrypted_response = self.request.form.get('result', None)
        if not encrypted_response:
            raise PXPayException("There should be a result attribute in the form data for this view")
        process_response_message = parser.ReturnRequest()
        process_response_message.pxpay_user_id = self.processor_options.PxPayUserId
        state_valid, errors = process_response_message.state_validate()
        if not state_valid:
            raise PXPayException(errors)
 
        try:
 
        if order is None:
            raise PXPayException("Order id " + order_id + " not found")
 
        # if you have Fail Proof Result Notification set on your pxpay

src/g/e/getpaid.pxpay-0.5/src/getpaid/pxpay/pxpay.py   getpaid.pxpay(Download)
     IPXPayPaymentProcessor, IPXPayNetworkError, ICheckoutContext
from getpaid.pxpay import parser
from getpaid.pxpay.exceptions import PXPayException, \
     PXPayInvalidMessageException, PXPayNetworkException
 
        state_valid, errors = initial_request.state_validate()
        if not state_valid:
            raise PXPayException(errors)
        return initial_request
 

src/g/e/getpaid.pxpay-0.5/src/getpaid/pxpay/browser/checkout.py   getpaid.pxpay(Download)
 
from getpaid.pxpay.interfaces import IPXPayPaymentProcessor
from getpaid.pxpay.exceptions import PXPayException
 
from Products.PloneGetPaid.i18n import _
            processor.authorize( order, None, self.request )
        else:
            raise PXPayException("This checkout implementation requires the PXPay payment processor.")