public class PayPal
extends java.lang.Object
Constructor and Description |
---|
PayPal() |
Modifier and Type | Method and Description |
---|---|
protected static void |
onActivityResult(BraintreeFragment fragment,
int resultCode,
android.content.Intent data)
The result from PayPal's request.
|
static void |
requestBillingAgreement(BraintreeFragment fragment,
PayPalRequest request)
Starts the Billing Agreement flow for PayPal.
|
static void |
requestBillingAgreement(BraintreeFragment fragment,
PayPalRequest request,
PayPalApprovalHandler handler)
Starts the Billing Agreement flow for PayPal with custom PayPal approval handler.
|
static void |
requestOneTimePayment(BraintreeFragment fragment,
PayPalRequest request)
Starts the Single Payment flow for PayPal.
|
static void |
requestOneTimePayment(BraintreeFragment fragment,
PayPalRequest request,
PayPalApprovalHandler handler)
Starts the Single Payment flow for PayPal with custom PayPal approval handler.
|
public static void requestBillingAgreement(BraintreeFragment fragment, PayPalRequest request)
fragment
- A BraintreeFragment
used to process the request.request
- A PayPalRequest
used to customize the request.public static void requestBillingAgreement(BraintreeFragment fragment, PayPalRequest request, PayPalApprovalHandler handler)
fragment
- A BraintreeFragment
used to process the request.request
- A PayPalRequest
used to customize the request.handler
- A PayPalApprovalHandler
for custom approval handling.public static void requestOneTimePayment(BraintreeFragment fragment, PayPalRequest request)
fragment
- A BraintreeFragment
used to process the request.request
- A PayPalRequest
used to customize the request. An amount MUST be specified.public static void requestOneTimePayment(BraintreeFragment fragment, PayPalRequest request, PayPalApprovalHandler handler)
fragment
- A BraintreeFragment
used to process the request.request
- A PayPalRequest
used to customize the request. An amount MUST be specified.handler
- A PayPalApprovalHandler
for custom approval handling.protected static void onActivityResult(BraintreeFragment fragment, int resultCode, android.content.Intent data)
fragment
- A BraintreeFragment
used to process the request.data
- Data associated with the result.