for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Evilnet\Dotpay\DotpayApi\Requests;
use Evilnet\Dotpay\DotpayApi\Contracts\IRequest;
/**
* Class CreatePaymentLink
* @package Evilnet\Dotpay\DotpayApi\Requests
*/
class CreatePaymentLink extends AbstractRequest implements IRequest
{
* @var
protected $amount;
protected $currency;
protected $description;
protected $control;
// protected $language;
* @var int
protected $onlinetransfer = 1;
protected $ch_lock = 1;
protected $redirection_type = 0;
* @var string
protected $buttontext = 'Return';
protected $url;
protected $urlc;
protected $expiration_datetime;
* @var array
protected $payer = [];
protected $recipient = [];
protected $shop_id;
* CreatePaymentLink constructor.
* @param $shop_id
* @param $data
public function __construct($shop_id, $data)
$this->shop_id = $shop_id;
foreach ($data as $key => $value) {
$this->$key = $value;
}
* @return string
public function method()
return 'POST';
public function path()
return 'api/v1/accounts/'.$this->shop_id.'/payment_links/';