Apr 3, 2018
0
Level 1
Stripe Payment: Giropay, Sofort Redirect does not work?
Hello, dear coding fellows, I am trying to get the Giropay and SOFORT API provided by Stripes to run. Sadly I am not the smartest when it comes to the redirection. Maybe you have a running Code example. Nevertheless, here is my Code so far:
my Route:
Route::post('checkout/sofort', ['as' => 'sofort_submit', 'uses' => 'CampaignsController@paymentSofortReceive']);
my Controller: public function paymentSofortReceive(Request $request) { \Stripe\Stripe::setApiKey(get_stripe_key('secret')); $charge = \Stripe\Source::create(array( "type" => 'sofort', "currency" => 'eur', "amount" => '1200',
"redirect" => array(
"return_url" => 'https://shop.example.com/crtA6B28E1',
),
"sofort" => array(
"country" => 'DE',
),
));
}
My HTML:
Submit PaymentPlease or to participate in this conversation.