PHP Class WellCommerce\Bundle\PaymentBundle\Gateway\PayPalGateway

Author: Adam Piotrowski ([email protected])
Inheritance: implements PayPalGatewayInterface
Show file Open project: wellcommerce/wellcommerce

Public Methods

Method Description
__construct ( array $options = [] ) PayPalGateway constructor.
cancelPayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment )
confirmPayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment )
createPayment ( array $configuration, Payer $payer, PayPal\Api\RedirectUrls $redirectUrls, Transaction $transaction ) : Payment Creates a PayPal payment
executePayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment )
notifyPayment ( WellCommerce\Bundle\PaymentBundle\Entity\PaymentInterface $payment )

Private Methods

Method Description
configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
getApiContext ( string $clientId, string $clientSecret, string $mode ) : ApiContext Configures the PayPal API context

Method Details

__construct() public method

PayPalGateway constructor.
public __construct ( array $options = [] )
$options array

cancelPayment() public method

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

confirmPayment() public method

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

createPayment() public method

Creates a PayPal payment
public createPayment ( array $configuration, Payer $payer, PayPal\Api\RedirectUrls $redirectUrls, Transaction $transaction ) : Payment
$configuration array
$payer PayPal\Api\Payer
$redirectUrls PayPal\Api\RedirectUrls
$transaction PayPal\Api\Transaction
return PayPal\Api\Payment

executePayment() public method

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

notifyPayment() public method

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