Skip to content

Commit c873e36

Browse files
committed
added style object to button
1 parent 3480f9d commit c873e36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
window.paypal
22
.Buttons({
3+
style: {
4+
shape: 'rect',
5+
//color:'blue', change the default color of the buttons
6+
layout: 'vertical', //default value. Can be changed to horizontal
7+
},
38
async createOrder() {
49
try {
510
const response = await fetch("/api/orders", {

0 commit comments

Comments
 (0)