#commander-accept-payment

1 messages · Page 1 of 1 (latest)

feral trout
#

heya @radiant glade! are you using a third party plugin or are you able to modify the code from scratch?

radiant glade
#

I´m using JSF and I want to integrate the payment provider stripe

#

Stripe Support chat was not able to help me

#

please see example like that

#

I want to setup the same like this

#

can you help?

feral trout
#

@radiant glade i'm not familiar with the term JSF? Do you mean Java Server Faces?

radiant glade
#

yes, correct

#

that´s my code

feral trout
#

@radiant glade Are you having trouble with a particular section of your code?

radiant glade
#

I have currently two buttons....

#

I want to integrate the function for "submit" into my "Zahlungspflichtig bestellen"

radiant glade
#

can you help?

feral trout
#

@radiant glade you're going to need to implement the logic yourself - in general though, you would want to make the request to confirm the payment when you click on the "Zahlungspflichtig bestellen" button

radiant glade
#

which logic you mean?

#

but "Zahlungspflichtig bestellen" is already my "confirmation"?

true hull
#

Hi, Alex is offline and I will try to take on from here. What exactly do you want to achieve? When your customer push the green button, you want to automatically submit your white "submit" button?

radiant glade
#

no, I need only one button

#

I guess I solved that

#

to change it to that

#

<button id="submit" onclick="startPayment(); PF('statusDialog').show();"
style="background-color: #4CAF50; border: none; color: white; padding: 15px 26px; text-align: center; text-decoration: none; display: inline-block; font-size: 14px; font-weight: bold">Zahlungspflichtig
bestellen</button>

                    <p:remoteCommand name="startPayment"
                        update=":growl, @form:billingOrderDetails_container" />
#

can you let me know, how can I change the style

#

I need for "Kartennummer" etc. the same style as for "Vorname"

true hull
#

Is the form in the right created by Payment Element?

radiant glade
#

My code is currently like his

#
                  clientSecret: '#{billingOrderProcessEditController.paymentIntent.clientSecret}',

                };

        

                // Set up Stripe.js and Elements to use in checkout form, passing the client secret obtained in step 2
                const elements = stripe.elements(options);```
#

how should I add the const appearance ?

nova wave