Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad Str Str NameLoad NameLoad Str NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpAnd CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpAnd CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Return Call NameLoad AttributeLoad NameLoad attr orelse Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Return Call AttributeLoad NameLoad attr orelse Return Call NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Return Call AttributeLoad NameLoad attr orelse Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A __future__ unicode_literals N/A warnings django.http HttpResponseRedirect django.template.response TemplateResponse paypal.pro.exceptions PayPalFailure paypal.pro.forms ConfirmForm PaymentForm paypal.pro.helpers PayPalWPP express_endpoint_for_token PayPalPro N/A object N/A N/A 
    This class-based view takes care of PayPal WebsitePaymentsPro (WPP).
    PayPalPro has two separate flows - DirectPayment and ExpressPayFlow. In
    DirectPayment the user buys on your site. In ExpressPayFlow the user is
    direct to PayPal to confirm their purchase. PayPalPro implements both
    flows. To it create an instance using the these parameters:

    item: a dictionary that holds information about the item being purchased.

    For single item purchase (pay once):

        Required Keys:
            * amt: Float amount of the item.

        Optional Keys:
            * custom: You can set this to help you identify a transaction.
            * invnum: Unique ID that identifies this transaction.

    For recurring billing:

        Required Keys:
          * amt: Float amount for each billing cycle.
          * billingperiod: String unit of measure for the billing cycle (Day|Week|SemiMonth|Month|Year)
          * billingfrequency: Integer number of periods that make up a cycle.
          * profilestartdate: The date to begin billing. "2008-08-05T17:00:00Z" UTC/GMT
          * desc: Description of what you're billing for.

        Optional Keys:
          * trialbillingperiod: String unit of measure for trial cycle (Day|Week|SemiMonth|Month|Year)
          * trialbillingfrequency: Integer # of periods in a cycle.
          * trialamt: Float amount to bill for the trial period.
          * trialtotalbillingcycles: Integer # of cycles for the trial payment period.
          * failedinitamtaction: set to continue on failure (ContinueOnFailure / CancelOnFailure)
          * maxfailedpayments: number of payments before profile is suspended.
          * autobilloutamt: automatically bill outstanding amount.
          * subscribername: Full name of the person who paid.
          * profilereference: Unique reference or invoice number.
          * taxamt: How much tax.
          * initamt: Initial non-recurring payment due upon creation.
          * currencycode: defaults to USD
          * + a bunch of shipping fields

    payment_form_cls: form class that will be used to display the payment form.
    It should inherit from `paypal.pro.forms.PaymentForm` if you're adding more.

    payment_template: template used to ask the dude for monies. To comply with
    PayPal standards it must include a link to PayPal Express Checkout.

    confirm_form_cls: form class that will be used to display the confirmation form.
    It should inherit from `paypal.pro.forms.ConfirmForm`. It is only used in the Express flow.

    success_url / fail_url: URLs to be redirected to when the payment successful or fails.
     N/A errors N/A processing form paypal There was an error processing your payment. Check your information and try again. Please correct the errors below and try again. There was a problem contacting PayPal. Please try again later. __init__ N/A N/A self item payment_form_cls payment_template confirm_form_cls confirm_template success_url fail_url context form_context_name nvp_handler N/A None PaymentForm pro/payment.html ConfirmForm pro/confirm.html ?success None None form None N/A N/A N/A self item item N/A N/A self payment_form_cls payment_form_cls N/A N/A self payment_template payment_template N/A N/A self confirm_form_cls confirm_form_cls N/A N/A self confirm_template confirm_template N/A N/A self success_url success_url N/A N/A self fail_url fail_url N/A N/A self context N/A context N/A N/A N/A self form_context_name form_context_name N/A N/A self nvp_handler nvp_handler N/A N/A nvp_handler None N/A N/A N/A N/A warnings warn You didn't pass `nvp_handler` to PayPalPro. You should pass a callback here instead of using the `payment_was_successful` signal DeprecationWarning N/A __call__ N/A N/A self request N/A N/A N/A Return the appropriate response for the state of the transaction. N/A N/A self request request N/A N/A N/A request method GET N/A N/A N/A N/A self should_redirect_to_express N/A N/A N/A N/A self redirect_to_express N/A N/A N/A N/A self should_render_confirm_form N/A N/A N/A N/A self render_confirm_form N/A N/A N/A N/A self should_render_payment_form N/A N/A N/A N/A self render_payment_form N/A N/A N/A N/A self should_validate_confirm_form N/A N/A N/A N/A self validate_confirm_form N/A N/A N/A N/A self should_validate_payment_form N/A N/A N/A N/A self validate_payment_form N/A N/A N/A self render_payment_form N/A is_recurring N/A N/A self N/A N/A N/A N/A N/A N/A self item None N/A billingperiod N/A self item N/A should_redirect_to_express N/A N/A self N/A N/A N/A N/A express N/A N/A self request GET N/A should_render_confirm_form N/A N/A self N/A N/A N/A N/A N/A token N/A N/A self request GET N/A PayerID N/A N/A self request GET N/A should_render_payment_form N/A N/A self N/A N/A N/A True N/A should_validate_confirm_form N/A N/A self N/A N/A N/A N/A N/A token N/A N/A self request POST N/A PayerID N/A N/A self request POST N/A should_validate_payment_form N/A N/A self N/A N/A N/A True N/A render_payment_form N/A N/A self N/A N/A N/A Display the DirectPayment for entering payment information. N/A N/A N/A self context N/A N/A self form_context_name N/A N/A self payment_form_cls N/A N/A TemplateResponse N/A self request N/A self payment_template N/A self context N/A validate_payment_form N/A N/A self N/A N/A N/A Try to validate and then process the DirectPayment form. N/A form N/A N/A self payment_form_cls N/A N/A self request POST N/A N/A N/A form is_valid N/A N/A success N/A N/A form process N/A self request N/A self item N/A success N/A N/A N/A HttpResponseRedirect N/A self success_url N/A N/A N/A N/A self context N/A errors N/A N/A self errors N/A processing N/A N/A N/A self context N/A N/A self form_context_name form N/A N/A N/A N/A self context setdefault errors N/A N/A self errors N/A form N/A N/A TemplateResponse N/A self request N/A self payment_template N/A self context N/A redirect_to_express N/A N/A self N/A N/A N/A 
        First step of ExpressCheckout. Redirect the request to PayPal using the
        data returned from setExpressCheckout.
         N/A wpp N/A PayPalWPP N/A self request N/A N/A N/A nvp_obj N/A N/A wpp setExpressCheckout N/A self item N/A N/A N/A PayPalFailure N/A N/A N/A N/A self context N/A errors N/A N/A self errors N/A paypal N/A N/A N/A self render_payment_form N/A N/A N/A HttpResponseRedirect N/A express_endpoint_for_token N/A nvp_obj token N/A render_confirm_form N/A N/A self N/A N/A N/A 
        Second step of ExpressCheckout. Display an order confirmation form which
        contains hidden fields with the token / PayerID from PayPal.
         N/A initial N/A dict token N/A N/A N/A self request GET N/A token PayerID N/A N/A N/A self request GET N/A PayerID N/A N/A N/A self context N/A N/A self form_context_name N/A N/A self confirm_form_cls initial initial N/A N/A TemplateResponse N/A self request N/A self confirm_template N/A self context N/A validate_confirm_form N/A N/A self N/A N/A N/A 
        Third and final step of ExpressCheckout. Request has pressed the confirmation but
        and we can send the final confirmation to PayPal using the data from the POST'ed form.
         N/A wpp N/A PayPalWPP N/A self request N/A pp_data N/A dict token N/A N/A N/A self request POST N/A token payerid N/A N/A N/A self request POST N/A PayerID N/A N/A N/A N/A self item update pp_data N/A N/A N/A N/A N/A self is_recurring N/A N/A nvp N/A N/A wpp createRecurringPaymentsProfile N/A self item N/A N/A nvp N/A N/A wpp doExpressCheckoutPayment N/A self item N/A N/A N/A self handle_nvp nvp N/A N/A N/A PayPalFailure N/A N/A N/A N/A self context N/A errors N/A N/A self errors N/A processing N/A N/A N/A self render_payment_form N/A N/A N/A HttpResponseRedirect N/A self success_url N/A handle_nvp N/A N/A self nvp N/A N/A N/A N/A N/A self nvp_handler None N/A N/A N/A N/A self nvp_handler nvp N/A N/A