Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gcash Payment help #68

Closed
eskiesirius opened this issue Mar 24, 2022 · 3 comments
Closed

Gcash Payment help #68

eskiesirius opened this issue Mar 24, 2022 · 3 comments

Comments

@eskiesirius
Copy link

Do I need to create a webhook or i can just directly use this?

$gcashSource = Paymongo::source()->create([
    		'type' => 'gcash',
    		'amount' => 100.00,
    		'currency' => 'PHP',
    		'redirect' => [
    			'success' => 'http://localhost:8000/success',
    			'failed' => 'http://localhost:8000/failed'
    		]
    	]);

actually i didn't understand when to use webhook

@luigel
Copy link
Owner

luigel commented Mar 24, 2022

@eskiesirius Better to read their documentation regarding gcash. https://developers.paymongo.com/docs/accepting-gcash-payments

@eskiesirius
Copy link
Author

thats why im having a problem understanding it because using the code above will produce checkout url where the customer can pay so im wondering when will the webhook occured..

@eskiesirius
Copy link
Author

does webhook will trigger after successful payment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant