Skip to content

feature -> develop | vaahpaypal update#6

Merged
themodernpk merged 12 commits into1.x-developfrom
1.x-feature/add-vaahpaypal
Dec 5, 2022
Merged

feature -> develop | vaahpaypal update#6
themodernpk merged 12 commits into1.x-developfrom
1.x-feature/add-vaahpaypal

Conversation

@we-himanshu-r001-v1
Copy link

@we-himanshu-r001-v1 we-himanshu-r001-v1 commented Dec 2, 2022

@themodernpk
Copy link
Contributor

@we-himanshu-r001-v1 create a Libraries/VaahPayPal.md file and write how to use your library like VaahStripe.md

@we-himanshu-r001-v1
Copy link
Author

@we-himanshu-r001-v1 create a Libraries/VaahPayPal.md file and write how to use your library like VaahStripe.md

Added : f2e5911


[comment]: <> (```)

Add env configuration:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@we-himanshu-r001-v1 change configuration to variables

composer require paypal/rest-api-sdk-php
```

[comment]: <> (Add Facade in `config/app.php`:)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same with other lines

Add env configuration:
```env
PAYPAL_MODE=sandbox
PAYPAL_SANDBOX_CLIENT_ID=xxxxxxxxxxxxxxx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@we-himanshu-r001-v1 write where and how to find PAYPAL_SANDBOX_CLIENT_ID and PAYPAL_SANDBOX_CLIENT_SECRET

$vaahPaypal = new VaahPayPal(
$client_id,
$client_secret,
$return_url,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@we-himanshu-r001-v1 describe more about $return_url and $cancel_url

$cancel_url,
);
//Create Order
$vaahPaypal->pay([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@we-himanshu-r001-v1 write what type of response will be received

@themodernpk themodernpk merged commit d5fa73e into 1.x-develop Dec 5, 2022
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

Successfully merging this pull request may close these issues.

3 participants