Skip to content

Commit

Permalink
Merge pull request #57 from NicolasBarbey/main
Browse files Browse the repository at this point in the history
fix front template and api request
  • Loading branch information
NicolasBarbey authored Oct 29, 2024
2 parents f341320 + 433017a commit 9a61a53
Show file tree
Hide file tree
Showing 20 changed files with 185 additions and 483 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>5.0.0</version>
<version>4.0.9</version>
<authors>
<author>
<name>gbarral</name>
Expand Down
2 changes: 1 addition & 1 deletion Controller/PayPalApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function createOrder(Request $request, PayPalApiService $payPalApiService
'reference_id' => $order->getRef(),
'amount' => [
'currency_code' => $currency?->getCode(),
'value' => $order->getTotalAmount($tax, true, true)
'value' => round($order->getTotalAmount($tax, true, true), 2)
]
]
]
Expand Down
Binary file removed templates/frontOffice/default/assets/cards-logo.jpg
Binary file not shown.
21 changes: 21 additions & 0 deletions templates/frontOffice/default/assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
.Paypal {
}

.Paypal-container {
margin-top: 8em;
}

.Paypal-headers h1 {
font-size: 2em;
font-weight: bold;
text-align: left;
}

.Paypal-headers p {
margin-top: 1em;
}

.Paypal-actions {
background-color: #F5F5F5;
padding: 3em 3em 2em;
border-radius: 9px;
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
Binary file not shown.
Binary file not shown.
11 changes: 0 additions & 11 deletions templates/frontOffice/default/paypal/cart-bottom.html

This file was deleted.

85 changes: 0 additions & 85 deletions templates/frontOffice/default/paypal/form/extra-credit-card.html

This file was deleted.

17 changes: 0 additions & 17 deletions templates/frontOffice/default/paypal/form/extra-paypal.html

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions templates/frontOffice/default/paypal/login-bottom.html

This file was deleted.

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions templates/frontOffice/default/paypal/order-invoice-bottom.html

This file was deleted.

58 changes: 0 additions & 58 deletions templates/frontOffice/default/paypal/order-invoice-js.html

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9a61a53

Please sign in to comment.