Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenefvdm committed Jun 6, 2022
2 parents 1f85902 + c4c1173 commit 4a2f703
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"php":"8.1.6","version":"3.8.0","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"sort_algorithm":"alpha"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":{"method":"one"}}},"hashes":{"src\/PayfastServiceProvider.php":1058611155,"src\/Contracts\/BillingProvider.php":4015681746,"src\/Payfast.php":3930691700,"src\/Facades\/Payfast.php":523744285,"tests\/Setup.php":266931904,"tests\/ApiTest.php":3547979175,"src\/PayFast.php":300700124,"src\/Facades\/PayFast.php":237864663,"src\/PayFastServiceProvider.php":1471211563,"tests\/TestCase.php":2976823947,"tests\/Feature\/PayFastTest.php":3175672066,"tests\/Feature\/SubscriptionTest.php":952679417,"tests\/Feature\/LaravelTest.php":1750009995,"src\/Events\/SubscriptionCreated.php":1964070845,"src\/Events\/SubscriptionPaymentSucceeded.php":2860070567,"src\/Events\/PaymentSucceeded.php":1808532227,"src\/Events\/WebhookHandled.php":3927842408,"src\/Events\/SubscriptionFetched.php":1861912126,"src\/Events\/SubscriptionCancelled.php":1399237531,"src\/Events\/WebhookReceived.php":4157586829,"src\/Events\/SubscriptionUpdated.php":3202335707,"src\/Events\/SubscriptionPaymentFailed.php":435390819,"src\/Order.php":2126856000,"src\/Customer.php":3779662296,"src\/Concerns\/Prorates.php":2791402646,"src\/Concerns\/ManagesCustomer.php":86130052,"src\/Concerns\/PerformsCharges.php":1786813530,"src\/Concerns\/ManagesReceipts.php":3872950923,"src\/Concerns\/ManagesSubscriptions.php":3163402950,"src\/Billable.php":3829932411,"src\/SubscriptionBuilder.php":577636357,"src\/Http\/Controllers\/WebhookController.php":2014210176,"src\/Receipt.php":2733721778,"src\/Cashier.php":1439156014,"src\/Subscription.php":1496905667,"tests\/Fixtures\/User.php":1469168930,"tests\/Feature\/SubscriptionsTest.php":2462720935,"tests\/Feature\/ReceiptsTest.php":296948944,"tests\/Feature\/CustomerTest.php":2096790243,"tests\/Feature\/FeatureTestCase.php":4107281031}}
{"php":"8.1.6","version":"3.8.0","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"sort_algorithm":"alpha"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":{"method":"one"}}},"hashes":{"src\/PayfastServiceProvider.php":1058611155,"src\/Contracts\/BillingProvider.php":4015681746,"src\/Payfast.php":3930691700,"src\/Facades\/Payfast.php":523744285,"tests\/Setup.php":266931904,"tests\/ApiTest.php":3547979175,"src\/PayFast.php":4000407930,"src\/Facades\/PayFast.php":237864663,"src\/PayFastServiceProvider.php":1471211563,"tests\/TestCase.php":2976823947,"tests\/Feature\/PayFastTest.php":3242673220,"tests\/Feature\/SubscriptionTest.php":952679417,"tests\/Feature\/LaravelTest.php":1750009995,"src\/Events\/SubscriptionCreated.php":1964070845,"src\/Events\/SubscriptionPaymentSucceeded.php":2860070567,"src\/Events\/PaymentSucceeded.php":1808532227,"src\/Events\/WebhookHandled.php":3927842408,"src\/Events\/SubscriptionFetched.php":1861912126,"src\/Events\/SubscriptionCancelled.php":1399237531,"src\/Events\/WebhookReceived.php":4157586829,"src\/Events\/SubscriptionUpdated.php":3202335707,"src\/Events\/SubscriptionPaymentFailed.php":435390819,"src\/Order.php":2126856000,"src\/Customer.php":3779662296,"src\/Concerns\/Prorates.php":2791402646,"src\/Concerns\/ManagesCustomer.php":86130052,"src\/Concerns\/PerformsCharges.php":1786813530,"src\/Concerns\/ManagesReceipts.php":3872950923,"src\/Concerns\/ManagesSubscriptions.php":3163402950,"src\/Billable.php":3829932411,"src\/SubscriptionBuilder.php":577636357,"src\/Http\/Controllers\/WebhookController.php":2014210176,"src\/Receipt.php":2733721778,"src\/Cashier.php":1439156014,"src\/Subscription.php":1496905667,"tests\/Fixtures\/User.php":1469168930,"tests\/Feature\/SubscriptionsTest.php":2462720935,"tests\/Feature\/ReceiptsTest.php":296948944,"tests\/Feature\/CustomerTest.php":2096790243,"tests\/Feature\/FeatureTestCase.php":4107281031}}
2 changes: 1 addition & 1 deletion src/PayFast.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function generatePaymentIdentifier($pfParameters)
$url = 'https://www.payfast.co.za/onsite/process';

$response = Http::post($url, $pfParameters)->json();

if (! $response['uuid']) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/PayFastTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function it_can_fetch_a_unique_payment_identifier_for_a_new_subscription(
]
),
]);

$pfData = [
'merchant_id' => config('payfast.merchant_id'),
'merchant_key' => config('payfast.merchant_key'),
Expand Down

0 comments on commit 4a2f703

Please sign in to comment.