|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpaypalnvp.request.SetExpressCheckout
public final class SetExpressCheckout
Instance is used for SetExpressCheckout request. This request initiates an Express Checkout transaction.
| Nested Class Summary | |
|---|---|
static class |
SetExpressCheckout.ChannelType
Type of channel |
static class |
SetExpressCheckout.LandingPage
Type of PayPal page to display |
static class |
SetExpressCheckout.LocalCode
Locale of pages displayed by PayPal during Express Checkout. |
static class |
SetExpressCheckout.SolutionType
Type of checkout flow |
| Constructor Summary | |
|---|---|
SetExpressCheckout(Payment payment,
java.lang.String returnUrl,
java.lang.String cancelUrl)
PayPal recommends that the returnUrl be the final review page on which the customer confirms the order and payment or billing agreement. |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getNVPRequest()
Creates and returns part of the nvp (name value pair) request containing request values |
java.util.Map<java.lang.String,java.lang.String> |
getNVPResponse()
Return response from paypal. |
void |
setAddress(Address address)
Sets address fields |
void |
setAddressOverride(boolean rOverride)
Indicates that the PayPal pages should display the shipping address set by you in this SetExpressCheckout request, not the shipping address on file with PayPal for this customer. |
void |
setAllowNote(boolean allowNote)
Indicates that the customer may enter a note to the merchant on the PayPal page during checkout. |
void |
setBackgroundColor(java.lang.String hexColor)
Sets the background color for the header of the payment page. |
void |
setBankTxPendingUrl(java.lang.String url)
The URL on the merchant site to transfer to after a bank transfer payment. |
void |
setBillingAgreement(BillingAgreement[] agreements)
Sets billing agreement (recurring payments etc.). |
void |
setBorderColor(java.lang.String hexColor)
Sets the border color around the header of the payment page. |
void |
setBuyerDetails(BuyerDetails buyer)
Sets buyer details |
void |
setCallback(java.lang.String callback)
URL to which the callback request from PayPal is sent. |
void |
setCallbackTimeout(int timeout)
An override for you to request more or less time to be able to process the callback request and respond. |
void |
setChannelType(SetExpressCheckout.ChannelType channelType)
Type of channel: Merchant: non-auction seller eBayItem: eBay auction |
void |
setEmail(java.lang.String email)
Email address of the buyer as entered during checkout. |
void |
setGiroCancelUrl(java.lang.String url)
The URL on the merchant site to redirect to after a unsuccessful giropay payment. |
void |
setGiroPaySuccessUrl(java.lang.String url)
The URL on the merchant site to redirect to after a successful giropay payment. |
void |
setImage(java.lang.String imgUrl)
URL for the image you want to appear at the top left of the payment page. |
void |
setLandingPage(SetExpressCheckout.LandingPage landingPage)
Type of PayPal page to display: Billing: non-PayPal account Login: PayPal account login |
void |
setLocalCode(SetExpressCheckout.LocalCode localCode)
Locale of pages displayed by PayPal during Express Checkout. |
void |
setMaxAmount(java.lang.String maxAmount)
The expected maximum total amount of the complete order, including shipping cost and tax charges. |
void |
setNoShipping(boolean noShipping)
Indicates that on the PayPal pages, no shipping address fields should be displayed whatsoever. |
void |
setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Setter for nvp (name value pair) response |
void |
setPageStyle(java.lang.String pageStyle)
Sets the Custom Payment Page Style for payment pages associated with this button/link. |
void |
setPayFlowColor(java.lang.String hexColor)
Sets the background color for the payment page. |
void |
setPaymentAction(PaymentAction paymentAction)
How you want to obtain payment: Sale indicates that this is a final sale for which you are requesting payment. |
void |
setRequireConfirmedShipping(boolean required)
Indicates that you require that the customer’s shipping address on file with PayPal be a confirmed address. |
void |
setShippingAddress(ShipToAddress address)
|
void |
setShippingOptions(ShippingOptions[] options)
Sets shipping options |
void |
setSolutionType(SetExpressCheckout.SolutionType solutionType)
Type of checkout flow: Sole: Express Checkout for auctions Mark: Normal Express Checkout |
void |
setToken(java.lang.String token)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SetExpressCheckout(Payment payment,
java.lang.String returnUrl,
java.lang.String cancelUrl)
throws java.lang.IllegalArgumentException
payment - returnUrl - URL to which the customer’s browser is returned after
choosing to pay with PayPal. Maximum 2048 characters.cancelUrl - URL to which the customer is returned if he does not
approve the use of PayPal to pay you. Maximum 2048
characters.
java.lang.IllegalArgumentException| Method Detail |
|---|
public void setToken(java.lang.String token)
throws java.lang.IllegalArgumentException
token - A timestamp token
java.lang.IllegalArgumentException
public void setMaxAmount(java.lang.String maxAmount)
throws java.lang.IllegalArgumentException
maxAmount - number with exactly two decimal places
java.lang.IllegalArgumentException
public void setCallback(java.lang.String callback)
throws java.lang.IllegalArgumentException
callback - max 1024 characters
java.lang.IllegalArgumentExceptionpublic void setCallbackTimeout(int timeout)
timeout - integer has to be between 1 - 6public void setRequireConfirmedShipping(boolean required)
required - if true than confirmed address is requiredpublic void setNoShipping(boolean noShipping)
noShipping - if true, no address fields will be displayedpublic void setAllowNote(boolean allowNote)
allowNote - if true, note can be entered by customerpublic void setAddressOverride(boolean rOverride)
rOverride - if true set address will be usedpublic void setLocalCode(SetExpressCheckout.LocalCode localCode)
localCode -
public void setPageStyle(java.lang.String pageStyle)
throws java.lang.IllegalArgumentException
pageStyle -
java.lang.IllegalArgumentException
public void setImage(java.lang.String imgUrl)
throws java.lang.IllegalArgumentException
imgUrl -
java.lang.IllegalArgumentException
public void setBorderColor(java.lang.String hexColor)
throws java.lang.IllegalArgumentException
hexColor -
java.lang.IllegalArgumentException
public void setBackgroundColor(java.lang.String hexColor)
throws java.lang.IllegalArgumentException
hexColor -
java.lang.IllegalArgumentException
public void setPayFlowColor(java.lang.String hexColor)
throws java.lang.IllegalArgumentException
hexColor -
java.lang.IllegalArgumentExceptionpublic void setPaymentAction(PaymentAction paymentAction)
paymentAction -
public void setEmail(java.lang.String email)
throws java.lang.IllegalArgumentException
email -
java.lang.IllegalArgumentExceptionpublic void setSolutionType(SetExpressCheckout.SolutionType solutionType)
solutionType - public void setLandingPage(SetExpressCheckout.LandingPage landingPage)
landingPage - public void setChannelType(SetExpressCheckout.ChannelType channelType)
channelType - public void setGiroPaySuccessUrl(java.lang.String url)
url - public void setGiroCancelUrl(java.lang.String url)
url - public void setBankTxPendingUrl(java.lang.String url)
url - public void setAddress(Address address)
address - public void setShippingOptions(ShippingOptions[] options)
options - public void setBillingAgreement(BillingAgreement[] agreements)
agreements - public void setBuyerDetails(BuyerDetails buyer)
buyer - public void setShippingAddress(ShipToAddress address)
address - shipping addresspublic java.util.Map<java.lang.String,java.lang.String> getNVPRequest()
Request
getNVPRequest in interface Requestpublic void setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Request
setNVPResponse in interface Requestpublic java.util.Map<java.lang.String,java.lang.String> getNVPResponse()
Request
getNVPResponse in interface Requestpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||