Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
3c7cba87
Commit
3c7cba87
authored
Feb 11, 2019
by
Ulises Morales Ramírez
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ipn_paypal' into 'dev'
IPN See merge request
!8
parents
da21ffcc
1304ce86
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
308 additions
and
218 deletions
+308
-218
settings.py
GeoInt_SIDT/settings.py
+1
-1
show_cart.html
catalog/templates/show_cart.html
+6
-5
urls.py
catalog/urls.py
+1
-0
views.py
catalog/views.py
+300
-212
No files found.
GeoInt_SIDT/settings.py
View file @
3c7cba87
...
...
@@ -14,7 +14,7 @@ import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
BASE_URL
=
"localhost:8000"
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
...
...
catalog/templates/show_cart.html
View file @
3c7cba87
...
...
@@ -201,10 +201,10 @@
</tbody>
<tfoot>
<tr>
<td>
<
!--
td>
<a href="../pay" class="btn btn-primary pull-right">Pay</a>
</td>
<td>
</td
--
>
<td
class=
"text-center"
>
<form
action=
"https://www.sandbox.paypal.com/cgi-bin/webscr"
method=
"post"
>
<input
type=
"hidden"
name=
"cmd"
value=
"_cart"
>
<input
type=
"hidden"
name=
"upload"
value=
"1"
>
...
...
@@ -222,9 +222,10 @@
{% endfor %}
<input
type=
'hidden'
name=
'cancel_return'
value=
'
http://www.example.com/cancel.php
'
>
value=
'
{{BASE_URL}}/reports
'
>
<input
type=
'hidden'
name=
'return'
value=
'http://www.example.com/success.php'
>
value=
'{{BASE_URL}}/catalog/cart'
>
<input
type=
"hidden"
name=
"notify_url"
value=
"{{BASE_URL}}/catalog/ipn"
>
<input
type=
"image"
src=
"https://www.sandbox.paypal.com/es_XC/MX/i/btn/btn_buynowCC_LG.gif"
border=
"0"
name=
"submit"
...
...
catalog/urls.py
View file @
3c7cba87
...
...
@@ -15,4 +15,5 @@ urlpatterns = [
url
(
r'^purchcartrqst/$'
,
views
.
purchaseProduct
,
name
=
'purch-prod-rqst'
),
url
(
r'^cart/$'
,
views
.
showCart
,
name
=
'show-cart'
),
url
(
r'^pay/$'
,
views
.
Pay
,
name
=
'pay'
),
url
(
r'^ipn/$'
,
views
.
IPN
,
name
=
'ipn'
),
]
catalog/views.py
View file @
3c7cba87
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment