This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/lib/PayPal/Api/PaymentOptions.php
japatel 9c0827643b Renaming Namespaces and Organizing Classes
- Updated OpenId classes to be in API namespace
- Updated PP Naming Convention to PayPal Naming Convention
- FormatConverter Class got its own namespace
- Handlers are grouped in Handler namespace
- Samples and Tests Updated Accordingly
2014-12-18 14:16:41 -06:00

69 lines
1.5 KiB
PHP

<?php
namespace PayPal\Api;
use PayPal\Common\PayPalModel;
use PayPal\Rest\ApiContext;
/**
* Class PaymentOptions
*
* Payment options requested for this purchase unit
*
* @package PayPal\Api
*
* @property string allowed_payment_method
*/
class PaymentOptions extends PayPalModel
{
/**
* Payment method requested for this purchase unit
* Valid Values: ["UNRESTRICTED", "INSTANT_FUNDING_SOURCE", "IMMEDIATE_PAY"]
*
* @param string $allowed_payment_method
*
* @return $this
*/
public function setAllowedPaymentMethod($allowed_payment_method)
{
$this->allowed_payment_method = $allowed_payment_method;
return $this;
}
/**
* Payment method requested for this purchase unit
*
* @return string
*/
public function getAllowedPaymentMethod()
{
return $this->allowed_payment_method;
}
/**
* Payment method requested for this purchase unit
*
* @deprecated Instead use setAllowedPaymentMethod
*
* @param string $allowed_payment_method
* @return $this
*/
public function setAllowed_payment_method($allowed_payment_method)
{
$this->allowed_payment_method = $allowed_payment_method;
return $this;
}
/**
* Payment method requested for this purchase unit
* @deprecated Instead use getAllowedPaymentMethod
*
* @return string
*/
public function getAllowed_payment_method()
{
return $this->allowed_payment_method;
}
}