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

feat: add stripe payment #50

Merged
merged 1 commit into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 8 additions & 8 deletions admin/includes/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -771,10 +771,10 @@ public static function booking_box($booking, $box): void
"[parking-management type='payment' payment_provider='mypos' kind='booking']"
);
echo self::_shortcode_field(
'shortcode-payment-paypal-booking',
'shortcode-payment-paypal-booking',
esc_html__("Copy and paste this code into your page to include paypal payment form.", 'parking-management'),
"[parking-management type='payment' payment_provider='paypal' kind='booking']"
'shortcode-payment-stripe-booking',
'shortcode-payment-stripe-booking',
esc_html__("Copy and paste this code into your page to include stripe payment form.", 'parking-management'),
"[parking-management type='payment' payment_provider='stripe' kind='booking']"
);
echo self::_shortcode_field(
'shortcode-notification-confirmation-booking',
Expand Down Expand Up @@ -833,10 +833,10 @@ public static function valet_box($valet, $box): void
"[parking-management type='payment' payment_provider='mypos' kind='valet']"
);
echo self::_shortcode_field(
'shortcode-payment-paypal-valet',
'shortcode-payment-paypal-valet',
esc_html__("Copy and paste this code into your page to include paypal payment form.", 'parking-management'),
"[parking-management type='payment' payment_provider='paypal' kind='valet']"
'shortcode-payment-stripe-valet',
'shortcode-payment-stripe-valet',
esc_html__("Copy and paste this code into your page to include stripe payment form.", 'parking-management'),
"[parking-management type='payment' payment_provider='stripe' kind='valet']"
);
echo self::_shortcode_field(
'shortcode-notification-confirmation-valet',
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"developermypos/mypos-checkout-sdk": "^1.3",
"phpmailer/phpmailer": "^6.9",
"aws/aws-sdk-php": "^3.317",
"ext-intl": "*"
"ext-intl": "*",
"stripe/stripe-php": "^16.6"
}
}
64 changes: 62 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 22 additions & 27 deletions includes/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,33 +106,28 @@ public static function payment_properties(): array
'value' => ''
],
],
// 'paypal' => [
// 'email' => [
// 'title' => 'Email',
// 'type' => 'email',
// 'value' => ''
// ],
// 'login' => [
// 'title' => 'Login',
// 'type' => 'text',
// 'value' => ''
// ],
// 'password' => [
// 'title' => 'Password',
// 'type' => 'password',
// 'value' => ''
// ],
// 'signature' => [
// 'title' => 'Signature',
// 'type' => 'password',
// 'value' => ''
// ],
// 'notification_url' => [
// 'title' => 'Notification URL',
// 'type' => 'url',
// 'value' => ''
// ],
// ],
'stripe' => [
'secret_key' => [
'title' => 'Secret Key',
'type' => 'password',
'value' => ''
],
'secret_key_test' => [
'title' => 'Secret Test Key',
'type' => 'password',
'value' => ''
],
'success_page' => [
'title' => 'Success Page',
'type' => 'page',
'value' => ''
],
'cancel_page' => [
'title' => 'Cancel Page',
'type' => 'page',
'value' => ''
],
],
];
}

Expand Down
Loading
Loading