dfnder.com PHP SDK
This SDK allows you to integrate with the dfnder.com API in a easy way
composer require dfnder/dfnder.php.sdk dev-master
-
Install the dependency with composer as shown above
-
add the next lines to
app/config/services.yml
in order to install the service injectionsservices: #... your services dfnder.card_processor: class: DfnderSDK\DependencyInjection\DfnderService #... your services
-
Use it in your controller
render('default/show_card_form.html.twig', []); } /** * @Route("/charge", name="process_card_form") * @Method("POST") */ public function processFormAction(Request $request) { $this->get('dfnder.card_processor'); die(print_r($request->request, true)); //return $this->render('default/show_card_form.html.twig', []); } }