Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.api.payments;
 
 
 public class RedirectUrls  {

Url where the payer would be redirected to after approving the payment.
 
	private String returnUrl;

Url where the payer would be redirected to after canceling the payment.
	private String cancelUrl;

Default Constructor
	public RedirectUrls() {
	}


Setter for returnUrl
	public RedirectUrls setReturnUrl(String returnUrl) {
		this. = returnUrl;
		return this;
	}

Getter for returnUrl
	public String getReturnUrl() {
		return this.;
	}


Setter for cancelUrl
	public RedirectUrls setCancelUrl(String cancelUrl) {
		this. = cancelUrl;
		return this;
	}

Getter for cancelUrl
	public String getCancelUrl() {
		return this.;
	}

Returns a JSON string corresponding to object state

Returns:
JSON representation
	public String toJSON() {
		return JSONFormatter.toJSON(this);
	}
	public String toString() {
		return toJSON();
	}
New to GrepCode? Check out our FAQ X