Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Payment
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Oct 2011 at 08:37 UTC
Updated:
20 Mar 2018 at 15:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rszrama commentedWhy can't you use the default configuration which includes the Payment checkout pane on the Review page? This is actually quite important if you're offering any sort of on-site payment, though I suppose for off-site payment methods it shouldn't matter (since redirect doesn't happen until after the Review page is submitted).
The selected payment method is purely stored in $order->data['payment_method'] I think. You'd need a custom checkout pane for that... maybe it's something we can work into the review callback for the core payment pane.
Comment #2
forward-media commentedI Use off site payment and have a one page checkout, cart, billing, shipping, terms and conditions and payment method is on one site. after insert all informations in germany we have to check that everything is ok before submit the order and pay.
i have a screen for you so that you know how i mean it.
What i now try is: make a module that insert a pane only on the review page witch shows the payment method.
Comment #3
forward-media commentedFor all these who want to know how i solved this.
i wrote a small module for this, here is the code:
that is the .module code, for more information please ask:
Here the .inc file:
and here is the theme file:
hope i could help someone.
Comment #4
Prague man commentedThank you very much! :-)
Comment #5
jimkont commentedThis is great! thanks!
Is it possible to have this information displayed in the order view/edit form
we have 2 separate offline payment methods
a bank transer option and one to pay the order on the delivery with the postal office (a very simple clone of the example payment module)
when the store admin processes the order he cannot tell which one the user selected
Thanks,
Dimitris
Comment #6
essbee commentedHmmm I'm not getting anything displaying using this method - the template file isnt being called.
What should that file be named?
Cheers,
Sam
Comment #7
essbee commentedHmm just had to move the pane from Review order to Checkout page and then it display - on the Review order page. A little counter intuitive but meh it works.
Comment #8
rszrama commentedYeah, you're dealing with two different things. To have the payment method selected show up on the review pane, there first has to be a selection, which is why it shows on review if you place it on the initial page.
Comment #9
essbee commentedBut I have two panes, "Payment" which is the pane offering the choice of payment options. Then a second pane "Paymnt Method" that simply displas (per above) the method selected.
I have them both on the Checkout page, but Payment shows on Checkout and Payment Method displays on the Review page.
Either way it works so its all good!
Comment #10
rszrama commentedOk, interesting. I'll see what patch can finally make it in so it's less confusing. : )
Comment #11
zambrey commentedIs it possible to get payment settings by some api function?
For example I want to display bank details on review pane but all bank settings are stored in rules configuration. commerce_payment_method_load() doesn't receive that.
I figured out that I can just do some db_query from {rules_config} table and grab data from there but I was just wondering if there's api function that will do this for me? :)
Comment #12
rszrama commentedYou'd use commerce_payment_method_instance_load() instead and the settings array will be populated.
Comment #13
zambrey commentedMany thanks! I couldn't find it myself.
Comment #14
sixelats commented@forward-media Thanks for sharing, just what I was looking for!
My 2 cents to help less experienced users (as myself) to convert the code in a working module:
1. create a folder named commerce_bonus and two subfolders in it named theme and includes
2. create a file commerce_bonus.module in commerce bonus folder and put the code for .module
3. create a file commerce_bonus.checkout_pane.inc in folder commerce_bonus/includes and put the code for .inc
4. create a file commerce_bonus_review.tpl.php in folder commerce_bonus/theme and put the code for the theme file
5. create a file commerce_bonus.info and put the following code in it
6. Upload and enable it as any other module
7. Go to Store > Configuration > Checkout settings and move both Payment and Payment Method panes to Checkout page (thanks @essbee).
Comment #15
forward-media commentedThank's sixelats! Perfekt!
Comment #16
CanOne commentedHm tried it twice and followed the instructions from sixelats (#14) but its still not showing the payment method?!
EDIT: I moved the pane to different places..and I cleared the cache multiple times.
EDIT2: Don´t know what happend but its workin now :) Cheers!
Comment #17
ndf commentedHi all,
Created sandbox module with the code from Forward Media and Sixelats.
http://drupal.org/sandbox/nielsdefeyter/1710056
Called this module Commerce Checkout Pane Payment (commerce_checkout_pane_payment).
On the module page there is an explanation howto create a new checkout-page 'choose payment method' with an other contrib-module 'Commerce Checkout Pages'.
Comment #18
falc0shka commentedHow can i display another fields like credit card number, that had typed on payment checkout page?
Thanks.
Comment #19
rszrama commentedYou can't, because that information is sent immediately to the payment gateway and not stored server side for security reasons.
Comment #20
forward-media commentedThe credit card number should NEVER touch your system!!
Comment #21
carsteng commentedHmm I'm using Novalnet Payment method.... So when I put payment info on checkout page or own payment page. After Submit (next Step) the payment is done... no chance to see review page.
Any Tips? Very important that payment is only handled when I click on submit on review page. And on review page I wanna see what payment I have selected one or two steps earlier.
Comment #22
rszrama commentedFound this issue, figured it'd be easy enough to add as a core checkout pane callback.
Patch attached.
Comment #23
rszrama commentedAaaaand committed.
Comment #26
jcisio commentedSorry to reopen (I'm not sure if I should open new issue). commerce_payment_update_7103() is broken because commerce_checkout is not a dependency of commerce_payment. I run into the error:
Comment #27
jcisio commentedComment #28
rszrama commentedLooks like we already had an issue for the fix: #2720191: Payment update 7103 introduces implicit dependency to Checkout module
Comment #29
mirondi commentedComment #30
mirondi commentedComment #31
mirondi commented