UoaWDCC / ASPA-EnrollmentForm

6 stars 1 forks source link

[ASPA-016] Changed Base URL to work with server HTTP host address #25

Closed Ray-F closed 4 years ago

Ray-F commented 4 years ago

Issue: CodeIgniter's $config['base_url'] was an automatic process( guessing what root URL was) which is not recommended for production environments. This created an error for Stripe Payment URL redirect which went to the server IP address instead of server directory.

Solution: Defined server URL for local development and server production environments (see lines 16 - 20 of config.php).

Risk Area: Potential path risks with other code attributes. Have tested against the existing master branch, and solves the issue and at this point hasn't caused additional issues.

Reviewed by: Lucas, Will, Daniel, Martin

Will-ZYS commented 4 years ago

image This error appears when I try to pay by Stripe/credit card

Will-ZYS commented 4 years ago

image

The error might be due to StripeModel using base_url()

Ray-F commented 4 years ago

image This error appears when I try to pay by Stripe/credit card

Fixed.