public class Payment extends Object implements Serializable
BuyButton. It contains the requested user
information as well as payment credentials. Depends on the payment provider
you use, the payment credential will differ. | Constructor and Description |
|---|
Payment() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
PaymentAmount |
getAmount()
Gets the
amount. |
String |
getPayload()
Gets the
payload. |
PaymentCredential |
getPaymentCredential()
Gets the
paymentCredential. |
RequestedUserInfo |
getRequestedUserInfo()
Gets the
requestedUserInfo. |
String |
getShippingOptionId()
Gets the
shippingOptionId. |
int |
hashCode() |
void |
setAmount(PaymentAmount amount)
Sets the
amount. |
void |
setPayload(String payload)
Sets the
payload. |
void |
setPaymentCredential(PaymentCredential paymentCredential)
Sets the
paymentCredential. |
void |
setRequestedUserInfo(RequestedUserInfo requestedUserInfo)
Sets the
requestedUserInfo. |
void |
setShippingOptionId(String shippingOptionId)
Sets the
shippingOptionId. |
String |
toString() |
public void setPayload(String payload)
payload.payload - the payload to set.public RequestedUserInfo getRequestedUserInfo()
requestedUserInfo.requestedUserInfo.public void setRequestedUserInfo(RequestedUserInfo requestedUserInfo)
requestedUserInfo.requestedUserInfo - the requestedUserInfo to set.public PaymentCredential getPaymentCredential()
paymentCredential.paymentCredential.public void setPaymentCredential(PaymentCredential paymentCredential)
paymentCredential.paymentCredential - the paymentCredential to set.public PaymentAmount getAmount()
amount.amount.public void setAmount(PaymentAmount amount)
amount.amount - the amount to set.public String getShippingOptionId()
shippingOptionId.shippingOptionId.public void setShippingOptionId(String shippingOptionId)
shippingOptionId.shippingOptionId - the shippingOptionId to set.Copyright © 2017 BotMill. All rights reserved.