|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpaypalnvp.request.CreateRecurringPaymentsProfile
public final class CreateRecurringPaymentsProfile
Create a recurring payments profile. You must invoke the CreateRecurringPaymentsProfile API operation for each profile you want to create. The API operation creates a profile and an associated billing agreement. Note: There is a one-to-one correspondence between billing agreements and recurring payments profiles. To associate a a recurring payments profile with its billing agreement, the description in the recurring payments profile must match the description of a billing agreement. Use SetExpressCheckout to initiate creation of a billing agreement.
Constructor Summary | |
---|---|
CreateRecurringPaymentsProfile(CreditCard card)
|
|
CreateRecurringPaymentsProfile(java.lang.String token,
ScheduleDetails details)
Token is appended to the return or cancel url set in SetExpressCheckout. |
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 |
setActivationDetails(ActivationDetails details)
|
void |
setAddress(Address address)
|
void |
setBillingPeriodDetails(BillingPeriodDetails details)
|
void |
setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Setter for nvp (name value pair) response |
void |
setPayerInformation(PayerInformation payer)
|
void |
setPayerName(PayerName name)
|
void |
setRecurringPaymentsProfileDetails(RecurringPaymentsProfileDetails details)
|
void |
setShipToAddress(ShipToAddress address)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateRecurringPaymentsProfile(java.lang.String token, ScheduleDetails details) throws java.lang.IllegalArgumentException
token
- A timestamped token, the value of which was returned in the
response to the first call to SetExpressCheckout. You can
also use the token returned in the
SetCustomerBillingAgreement response. Either this token or
a credit card number is required. If you include both token
and credit card number, the token is used and credit card
number is ignored. Call CreateRecurringPaymentsProfile once
for each billing agreement included in SetExpressCheckout
request and use the same token for each call. Each
CreateRecurringPaymentsProfile request creates a single
recurring payments profile.
Note:
Tokens expire after approximately 3 hours.details
-
java.lang.IllegalArgumentException
public CreateRecurringPaymentsProfile(CreditCard card)
card
- Method Detail |
---|
public void setRecurringPaymentsProfileDetails(RecurringPaymentsProfileDetails details)
details
- public void setBillingPeriodDetails(BillingPeriodDetails details)
details
- public void setActivationDetails(ActivationDetails details)
details
- public void setShipToAddress(ShipToAddress address)
address
- public void setPayerInformation(PayerInformation payer)
payer
- public void setPayerName(PayerName name)
name
- public void setAddress(Address address)
address
- public java.util.Map<java.lang.String,java.lang.String> getNVPRequest()
Request
getNVPRequest
in interface Request
public void setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Request
setNVPResponse
in interface Request
public java.util.Map<java.lang.String,java.lang.String> getNVPResponse()
Request
getNVPResponse
in interface Request
public 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 |