dongseshu0698 2015-02-11 10:45
浏览 31
已采纳

使用自定义表单symfony进行条带检出

I have a checkout form that I am using to send shopping cart details to different payment gateways like paypal using Symfony and Payum.

Now I am trying to send payment details to stripe in case user selects stripe checkout option. At the moment the integration with stripe is working fine, i can send the payment and get the response from stripe however in order to send credit card details to stripe i get redirected to capture

enter image description here

where i see the "pay with card" button and if i click on it the popup appears to enter credit card details

enter image description here

What I would like to do is allow user to add credit card details on checkout form that I have rather than the form you see on popup. Is it possible to achieve this? How can i use my own form to send data to stripe rather than using stripe popup?

I found a close example of the process in this and this example. Is there any example for stripe? Any help will be greatly appreciated.

  • 写回答

2条回答 默认 最新

  • douqiao7958 2015-02-12 09:13
    关注

    Stripe Checkout is designed this way. You see the button click it, fill all the required info and that's it.

    If you want to fill credit card details earlier you can do that, but in that case you have to use

    • Stripe "direct". Implemented in Omnipay and used via Omnipay Bridge
    • You have to pass omnipay credit cards like this (better way is not implemented yet):

      $order->setDetails(array( 'card' => new CreditCard($data), ));

      • and use $this->forward instead of redirect. Because credit card is not saved to database you have to process them immediately. (example)
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 关于#java#的问题,请各位专家解答!
  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
  • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
  • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?
  • ¥30 求解达问题(有红包)
  • ¥15 请解包一个pak文件