#commander-accept-payment
1 messages · Page 1 of 1 (latest)
heya @radiant glade! are you using a third party plugin or are you able to modify the code from scratch?
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?
@radiant glade i'm not familiar with the term JSF? Do you mean Java Server Faces?
@radiant glade Are you having trouble with a particular section of your code?
I have currently two buttons....
I want to integrate the function for "submit" into my "Zahlungspflichtig bestellen"
can you help?
@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
which logic you mean?
but "Zahlungspflichtig bestellen" is already my "confirmation"?
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?
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"
Is the form in the right created by Payment Element?
There is Appearance API for customizing it: https://stripe.com/docs/stripe-js/appearance-api#detail-rules
Customize the look and feel of Elements to match the design of your site.
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 ?
Are you still around commander? You can read all about the Appearance API here: https://stripe.com/docs/stripe-js/appearance-api
It would be a parameter beside the client secret within options:
const elements = stripe.elements({clientSecret, appearance});
Customize the look and feel of Elements to match the design of your site.