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 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题