feature -> develop | vaahpaypal update#6
Conversation
|
@we-himanshu-r001-v1 create a |
Added : f2e5911 |
Libraries/VaahPayPal.md
Outdated
|
|
||
| [comment]: <> (```) | ||
|
|
||
| Add env configuration: |
There was a problem hiding this comment.
@we-himanshu-r001-v1 change configuration to variables
Libraries/VaahPayPal.md
Outdated
| composer require paypal/rest-api-sdk-php | ||
| ``` | ||
|
|
||
| [comment]: <> (Add Facade in `config/app.php`:) |
There was a problem hiding this comment.
| Add env configuration: | ||
| ```env | ||
| PAYPAL_MODE=sandbox | ||
| PAYPAL_SANDBOX_CLIENT_ID=xxxxxxxxxxxxxxx |
There was a problem hiding this comment.
@we-himanshu-r001-v1 write where and how to find PAYPAL_SANDBOX_CLIENT_ID and PAYPAL_SANDBOX_CLIENT_SECRET
Libraries/VaahPayPal.md
Outdated
| $vaahPaypal = new VaahPayPal( | ||
| $client_id, | ||
| $client_secret, | ||
| $return_url, |
There was a problem hiding this comment.
@we-himanshu-r001-v1 describe more about $return_url and $cancel_url
| $cancel_url, | ||
| ); | ||
| //Create Order | ||
| $vaahPaypal->pay([ |
There was a problem hiding this comment.
@we-himanshu-r001-v1 write what response will be received.
| //Execute the order | ||
| $payment_id = 'xxxx'; | ||
| $payer_id = 'xxxx'; | ||
| $vaahPaypal->executePayment($payment_id, $payer_id); |
There was a problem hiding this comment.
@we-himanshu-r001-v1 write what type of response will be received
Task URL : https://team.webreinvent.com/backend/collab/project/allofamicom/tasks/9