<commit_before><?php

Autoloader::namespaces(array(
	'Molpay' => Bundle::path('molpay').'libraries',
));

Autoloader::map(array(
	'Molpay\\Transaction' => Bundle::path('molpay').'models/transaction'.EXT,
));


/*
|--------------------------------------------------------------------------
| On Payment Received
|--------------------------------------------------------------------------
|
| Trigger an event when payment is made by client.
|
*/
Event::listen('molpay.checkout.paid', function ($order_id) 
{
	// Transaction paid and done.
});

/*
|--------------------------------------------------------------------------
| On Payment Failed
|--------------------------------------------------------------------------
|
| Trigger an event when payment is marked as failed.
|
*/
Event::listen('molpay.checkout.failed', function ($order_id, $status) 
{
	// Transaction is failed
});

/*
|--------------------------------------------------------------------------
| On Payment Pending
|--------------------------------------------------------------------------
|
| Trigger an event when payment is marked as pending.
|
*/
Event::listen('molpay.checkout.pending', function ($order_id, $status) 
{
	// Transaction is pending
});<commit_msg>Fixed #9 Since all three payment status is already covered, 00 (success), 11 (fail), and 22 (pending), we dont need to add status_id parameter<commit_after><?php

Autoloader::namespaces(array(
	'Molpay' => Bundle::path('molpay').'libraries',
));

Autoloader::map(array(
	'Molpay\\Transaction' => Bundle::path('molpay').'models/transaction'.EXT,
));


/*
|--------------------------------------------------------------------------
| On Payment Received
|--------------------------------------------------------------------------
|
| Trigger an event when payment is made by client.
|
*/
Event::listen('molpay.checkout.paid', function ($order_id) 
{
	// Transaction paid and done.
});

/*
|--------------------------------------------------------------------------
| On Payment Failed
|--------------------------------------------------------------------------
|
| Trigger an event when payment is marked as failed.
|
*/
Event::listen('molpay.checkout.failed', function ($order_id) 
{
	// Transaction is failed
});

/*
|--------------------------------------------------------------------------
| On Payment Pending
|--------------------------------------------------------------------------
|
| Trigger an event when payment is marked as pending.
|
*/
Event::listen('molpay.checkout.pending', function ($order_id) 
{
	// Transaction is pending
});
{'fraction_non_alphanumeric': 0.4552499031383185, 'fraction_numerical': 0.0027121270825261525, 'mean_word_length': 1.1624790619765495, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1711496', 'n_tokens_mistral': 608, 'n_tokens_neox': 573, 'n_words': 149}