Closed RishabhTayal closed 2 years ago
@RishabhTayal Good idea, thanks for this. Can you add a test to the BillingController's test file to confirm this works as expected? You can modify the existing tests thats in the file already for accept/decline and test the result of the redirect URL.
@osiset I am very new to php and laravel environment. Could you please point me where and what I need to change in the BillingControllerTest.php class?
@RishabhTayal You should be able to assert the parameter comes back on this test
@osiset Sorry for naive question: Do you have an example in the code of asserting a parameter?
@osiset I'm assuming this PR is the one you mentioned, I can merge this one and my on together once they are both ready and they can go out together. I'll sort the test out @RishabhTayal.
@Kyon147 This is exactly it, yes!
Closing in favour of #1244
When a merchant accepts/declines billing this will add a parameter 'billing -> success' to the home page route. This way developers can detect when billing is accepted/declined.