Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

Payment method requested for this purchase unit
Default Constructor
	public PaymentOptions() {

Setter for allowedPaymentMethod
	public PaymentOptions setAllowedPaymentMethod(String allowedPaymentMethod) {
		this. = allowedPaymentMethod;
		return this;

Getter for allowedPaymentMethod
		return this.;

Returns a JSON string corresponding to object state

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