Skip to content

Commit

Permalink
stripe pay
Browse files Browse the repository at this point in the history
  • Loading branch information
TMuthulakshmi committed Dec 26, 2022
1 parent 363eff4 commit 079822f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Controllers/Api/Stripe/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public function stripepayment(){
if ($validation->withRequest($this->request)->run()) {
if($requestData['type']=='1' || (isset($requestData['page']) && $requestData['page']=='checkout')){
$result = $this->stripe->stripepayment($requestData);
if(isset($requestData['stripepay'])){
$this->cart->delete(['user_id' => $userid, 'type' => $requestData['type']]);
}
$json = ['1', 'Payment Success',$result['paymentintents']['client_secret']];
}elseif($requestData['type']=='2'){
$result = $this->stripe->striperecurringpayment($requestData);
Expand Down

0 comments on commit 079822f

Please sign in to comment.