PHP Class WellCommerce\Bundle\PaymentBundle\Processor\PayPalProcessor

Author: Adam Piotrowski ([email protected])
Inheritance: extends AbstractPayPalProcessor
Mostrar archivo Open project: wellcommerce/wellcommerce

Public Methods

Method Description
cancelPayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : Response
confirmPayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : Response
getCancelUrl ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : string
getConfirmUrl ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : string
getInitializeUrl ( ) : string
preparePayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment )
processPayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface

Protected Methods

Method Description
createRedirectUrls ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : PayPal\Api\RedirectUrls Creates a collection of PayPal url definitions
updatePayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment, ApiContext $apiContext ) : WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface }

Method Details

cancelPayment() public method

public cancelPayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : Response
$payment WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface
return Symfony\Component\HttpFoundation\Response

confirmPayment() public method

public confirmPayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : Response
$payment WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface
return Symfony\Component\HttpFoundation\Response

createRedirectUrls() protected method

Creates a collection of PayPal url definitions
protected createRedirectUrls ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : PayPal\Api\RedirectUrls
$payment WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface
return PayPal\Api\RedirectUrls

getCancelUrl() public method

public getCancelUrl ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : string
$payment WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface
return string

getConfirmUrl() public method

public getConfirmUrl ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : string
$payment WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface
return string

getInitializeUrl() public method

public getInitializeUrl ( ) : string
return string

preparePayment() public method

public preparePayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment )
$payment WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface

processPayment() public method

public processPayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment ) : WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface
$payment WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface
return WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface

updatePayment() protected method

}
protected updatePayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment, ApiContext $apiContext ) : WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface
$payment WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface
$apiContext PayPal\Rest\ApiContext
return WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface