You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+31
Original file line number
Diff line number
Diff line change
@@ -135,3 +135,34 @@ public function getCancel()
135
135
return view('checkout.cancel');
136
136
}
137
137
```
138
+
### Customize Paypal payment page
139
+
140
+
First we need to create a new WebProfile for obtain the id, then in the future we can simply set this id to the payment object.
141
+
142
+
```php
143
+
public function createWebProfile(){
144
+
145
+
$flowConfig = PayPal::FlowConfig();
146
+
$presentation = PayPal::Presentation();
147
+
$inputFields = PayPal::InputFields();
148
+
$webProfile = PayPal::WebProfile();
149
+
$flowConfig->setLandingPageType("Billing"); //Set the page type
150
+
151
+
$presentation->setLogoImage("https://www.example.com/images/logo.jpg")->setBrandName("Example ltd"); //NB: Paypal recommended to use https for the logo's address and the size set to 190x60.
0 commit comments