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

Verify = false, default doesn't work guzzleOptions #41

Open
bobitza opened this issue Sep 21, 2023 · 0 comments
Open

Verify = false, default doesn't work guzzleOptions #41

bobitza opened this issue Sep 21, 2023 · 0 comments

Comments

@bobitza
Copy link

bobitza commented Sep 21, 2023

Laravel: 10
Guzzle: 7.8

Your guzzleOptions didn't work, i set on order create guzzleOptions: ['verify' => false], i debugged and
buildGuzzleClient doesn't have configs with verify => false becauze guzzle default is true
And i get this error:
cURL error 60: SSL certificate problem: unable to get local issuer certificate for https://demo-accounts.vivapayments.com/connect/token
I set manually in guzzle to false and work....

This is example:

				$orderCode = Viva::orders()->create(
					order: new CreatePaymentOrder(
						amount: (int) ((int)$total_price)*100,
						customerTrns: $frm['pname']. ' '. $frm['name'].' - Pay '.$type.' '.$total_price.'',
						customer: new Customer(
							email:				$frm['email'],
							fullName:			$frm['pname']. ' '. $frm['name'],
							phone:				$frm['phone'],
							countryCode:		"RO",
							requestLang:		App::getLocale() == 'en' ? "en-GB" : "ro-RO"
						),
						paymentTimeOut:			    	65535,
						preauth:						false,
						allowRecurring:			 		false,
						maxInstallments:				0,
						paymentNotification:			false,
						tipAmount:				 		0,
						disableExactAmount:		 		false,
						disableCash:				 	true,
						disableWallet:			 		false,
						sourceCode:				 		(string) $sourceCode, // 2178
						merchantTrns:			 		'Plata cu card-ul prin VivaWallet pentru'.config('app.name'),
						tags:					 		[$type]
					),
					guzzleOptions: ['verify' => false],
				);
@bobitza bobitza changed the title Verify = true, default doesn't work guzzleOptions Verify = false, default doesn't work guzzleOptions Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant