Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 535 Bytes

06-payline_sdk.md

File metadata and controls

16 lines (12 loc) · 535 Bytes

Using Payline SDK

LolautruchePaylineBundle uses PaylineSDK in the background, and defines it as a service. Using the SDK to consume specific Payline services is as easy as getting the gateway 😄

// Inside a controller

/** @var \Lolautruche\PaylineBundle\Payline\Payline $paylineGateway */
$paylineGateway = $this->get('payline');

/** @var \Payline\PaylineSDK $paylineSDK */
$paylineSDK = $paylineGateway->getPaylineSDK();
$payineSDK->createWebWallet([/* */]);