Dawn-Theme 2
Dawn-Theme 2
<script src="https://www.paypal.com/sdk/js?client-id=sb¤cy=USD"></script>
<script>
var cart_data = {{ cart.items | json }};
}).render('#paypal-button-container');
</script>
3. Add below code under the checkout button code (Follow below videos)
<style>
#paypal-button-container {
margin-top: 10px;
}
button[name=checkout] {
display: none;
}
button[name=update] {
display: none;
}
.additional_checkout_buttons {
display: none;
}
/* Media query for desktop viewport */
@media screen and (max-width: 749px) {
#paypal-button-container {
width: 100%;
}
}
</style>
Note 1: If you have any other theme then please contact me I will help you.
Note 2: Please don't use code from the video because that is old
References:
https://www.youtube.com/watch?v=z4i1yP7WNvk&t=9s
Paypal: https://developer.paypal.com/demo/checkout
Support:
WhatsApp: +91-9145985880
Email: [email protected]