public class PaypalConnector extends Object
| Constructor and Description |
|---|
PaypalConnector(String baseUrl,
String user,
String password) |
| Modifier and Type | Method and Description |
|---|---|
String |
createPaypalPayment(ContentContext ctx,
Basket basket,
URL returnURL,
URL cancelURL) |
String |
executePaypalPayment(String paymentToken,
String payerID) |
static String |
formatDouble(double dbl) |
com.paypal.api.payments.Payment |
getPayment() |
static void |
main(String[] args) |
public com.paypal.api.payments.Payment getPayment()
public static String formatDouble(double dbl)
public String createPaypalPayment(ContentContext ctx, Basket basket, URL returnURL, URL cancelURL) throws Exception
Exceptionpublic String executePaypalPayment(String paymentToken, String payerID) throws com.paypal.core.rest.PayPalRESTException
com.paypal.core.rest.PayPalRESTExceptionpublic static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.