PayU\Client::createPaymentRequestBuilder PHP 메소드

createPaymentRequestBuilder() 공개 메소드

public createPaymentRequestBuilder ( ) : PaymentRequestBuilder
리턴 Payu\Builder\PaymentRequestBuilder
    public function createPaymentRequestBuilder()
    {
        return new PaymentRequestBuilder($this->configuration);
    }

Usage Example

예제 #1
0
 public function testMakePayment()
 {
     $request = $this->client->createPaymentRequestBuilder()->buildCard('4282209027132016', '123', 5, 2019)->buildOrder('ORDERNO123456', '127.0.0.1')->buildBilling('John', 'Smith', '*****@*****.**', '05321231212')->buildAndAddProduct('The Product', 'PR1', 1, 10)->build();
     $result = $this->client->makePayment($request);
     $this->assertTrue($result instanceof PaymentResponse);
 }