2Checkout / 2checkout-php

2Checkout PHP Library
MIT License
83 stars 66 forks source link

Call to undefined method Twocheckout::sandbox() #39

Open shaibal13 opened 4 years ago

shaibal13 commented 4 years ago

When i try to pass sandbox(true) it gives this and in TwoCheckout there is nofunction named sanbox

kesato commented 4 years ago

i've same problem when i change to test the payment on the sandbox

domagoj-orioly commented 3 years ago

They've changed the way they process demo transactions.

In order to create demo transaction, you can just pass [ ..., 'demo' => true ] property with your transaction request. Read more about it here: https://knowledgecenter.2checkout.com/API-Integration/Transition_guides/Transition_Guide_for_2Checkout_Sandbox