Order status-STRIPE

Hi,

I created payment gateway STRIPE. When someone places the order using Credit Card, system changes Order status from OPEN to status SENT. Its Automatic!

But is there a way i can set myself which status will be changed after succesfull payment on Stripe.
Or it has always need be SENT and than I have to manually change to some other status everytime?

Thanks
Erol

Hello!

By default, once payment has been received, the order status changes to Paid (P). It appears that you have renamed this status to Sent. There is nothing wrong with renaming default order statuses as long as their meaning remains the same, as most of the basic statuses are woven into the default processes that take place in CS-Cart.

1 Like

app/addons/stripe/src/Payments/Stripe.php

For example, you can replace

$pp_response['order_status'] = OrderStatuses::PAID;

with

$pp_response['order_status'] = 'C';

where C - is the letter associated with the required status

P—processed

C—complete

O—open

F—failed

D—declined

B—backordered

I—cancelled

Y—awaiting call