Create a payment interface using Stripe (card, Apple Pay, Google Pay)
Place the form on the page like here (the PAY button is currently not working. It complains about SecretKey)
https://paybot.top/st5/public/checkout.html
Docs:
https://docs.stripe.com/payments/payment-element
Above the form, place a button available for the user for Apple Pay or Google Pay
https://docs.stripe.com/elements/express-checkout-element#customize-payment-methods
At the bottom of the page, fix the Apple Pay or Google Pay button. If unavailable, then the PAY by CARD button that scrolls to the form.
The forms must have a field for entering an email.
Upon successful payment, data must be sent to the webhook and redirect to success.html
Js + html + PHP
The form and buttons must be embeddable on any page.
In the settings, the product name and price in euros must be specified.
Make a custom Stripe form + PayPal similar to the example here:
https://secure.iphonephotographyschool.com/iphone-video-academy
A separate form with fields for card input and their verification, and either Google Pay or Apple Pay on top. The form also needs to include the option for PayPal payment. Everything should be analogous. Iframes should not be used for displaying buttons and forms.
Buttons should be clickable using the js script:
document.getElementById('applePay').click()
In the form settings, all secret keys, price, product name, and additional fields on/off (first name, last name, phone, email, address) should be specified.
Webhooks for PayPal and Stripe also need to be written to capture successful and unsuccessful payments and send their data to an external URL (I will later integrate the CRM myself).
Log in
or
register,
to view the original