PHP Class Payu\Builder\PaymentRequestBuilder

Inheritance: extends BuilderAbstract
Exibir arquivo Open project: paranoiaproject/payuclient Class Usage Examples

Protected Properties

Property Type Description
$basket Payu\Component\Basket
$billing Payu\Component\Billing
$delivery Payu\Component\Delivery
$order Payu\Component\Order

Public Methods

Method Description
__construct ( Configuration $configuration )
addProduct ( Product $product )
build ( )
buildAndAddProduct ( null $name = null, null $code = null, null $quantity = null, null $info = null, null $price = null, null $version = null, null $vat = null, null $priceType = null )
buildBilling ( null $firstName = null, null $lastName = null, null $email = null, null $phone = null, null $fax = null, null $address = null, null $zipCode = null, null $city = null, null $state = null, null $countryCode = null )
buildDeliverys ( null $firstName = null, null $lastName = null, null $email = null, null $phone = null, null $company = null, null $address = null, null $zipCode = null, null $city = null, null $state = null, null $countryCode = null )
buildOrder ( $code, $clientIp, integer $installment = 1, string $currency = 'TRY', null $loyaltyAmount = null, string $paymentMethod = 'CCVISAMC', null $date = null, null $timeout = null, $recurringPayment = false )
setBilling ( Billing $billing )
setDelivery ( Delivery $delivery )
setOrder ( Order $order )

Method Details

__construct() public method

public __construct ( Configuration $configuration )
$configuration PayU\Configuration

addProduct() public method

public addProduct ( Product $product )
$product Payu\Component\Product

build() public method

public build ( )

buildAndAddProduct() public method

public buildAndAddProduct ( null $name = null, null $code = null, null $quantity = null, null $info = null, null $price = null, null $version = null, null $vat = null, null $priceType = null )
$name null
$code null
$quantity null
$info null
$price null
$version null
$vat null
$priceType null

buildBilling() public method

public buildBilling ( null $firstName = null, null $lastName = null, null $email = null, null $phone = null, null $fax = null, null $address = null, null $zipCode = null, null $city = null, null $state = null, null $countryCode = null )
$firstName null
$lastName null
$email null
$phone null
$fax null
$address null
$zipCode null
$city null
$state null
$countryCode null

buildDeliverys() public method

public buildDeliverys ( null $firstName = null, null $lastName = null, null $email = null, null $phone = null, null $company = null, null $address = null, null $zipCode = null, null $city = null, null $state = null, null $countryCode = null )
$firstName null
$lastName null
$email null
$phone null
$company null
$address null
$zipCode null
$city null
$state null
$countryCode null

buildOrder() public method

public buildOrder ( $code, $clientIp, integer $installment = 1, string $currency = 'TRY', null $loyaltyAmount = null, string $paymentMethod = 'CCVISAMC', null $date = null, null $timeout = null, $recurringPayment = false )
$code
$clientIp
$installment integer
$currency string
$loyaltyAmount null
$paymentMethod string
$date null
$timeout null

setBilling() public method

public setBilling ( Billing $billing )
$billing Payu\Component\Billing

setDelivery() public method

public setDelivery ( Delivery $delivery )
$delivery Payu\Component\Delivery

setOrder() public method

public setOrder ( Order $order )
$order Payu\Component\Order

Property Details

$basket protected_oe property

protected Basket,Payu\Component $basket
return Payu\Component\Basket

$billing protected_oe property

protected Billing,Payu\Component $billing
return Payu\Component\Billing

$delivery protected_oe property

protected Delivery,Payu\Component $delivery
return Payu\Component\Delivery

$order protected_oe property

protected Order,Payu\Component $order
return Payu\Component\Order