in laravel i am trying to makke it work but when it comes to
sendTransaction("sale") it gives error that 2 arguments are needed not one
Best Answer
O
Osama El-Hamahmy
said
10 months ago
Welcome, Wael,
Thanks for reaching PayTabs out on our Developers Community. My Name is Osama El-Hamahmy from the technical support team and I will be looking into this post and following up with you.
As per the mentioned case, kindly note that the mentioned method "sendTransaction" requires two parameters you should not as null.
paypage::sendTransaction($tran_type,$tran_class)
For more details abour both parameters and how to initiate/manage the payment request and manage the transaction type, please check our soultion articles: Step 3 - Laravel Package | Initiating the payment
Note that move his post will move to the right category.
You should also know that we are providing you with a great "Solutions Portal" that includes so many articles that can walk you through any situation such as the "The How to & The What Is (FAQ)" category which contains the technical and non-technical FAQ, and the "How to Integrate with PayTabs?" category which contains all the available methods to integrate with the fully detailed documentation and "Troubleshooting Your Issues/Errors" category which will allow you to trace and solve your issues without seeking for any assistance.
Please don't ever hesitate to comment back if you still have further inquiries. Let me know if there's anything else I can help with.
Glad to be always in help.
Hoping you have a profitable and successful trade.
Thanks for reaching PayTabs out on our Developers Community. My Name is Osama El-Hamahmy from the technical support team and I will be looking into this post and following up with you.
As per the mentioned case, kindly note that the mentioned method "sendTransaction" requires two parameters you should not as null.
paypage::sendTransaction($tran_type,$tran_class)
For more details abour both parameters and how to initiate/manage the payment request and manage the transaction type, please check our soultion articles: Step 3 - Laravel Package | Initiating the payment
Note that move his post will move to the right category.
You should also know that we are providing you with a great "Solutions Portal" that includes so many articles that can walk you through any situation such as the "The How to & The What Is (FAQ)" category which contains the technical and non-technical FAQ, and the "How to Integrate with PayTabs?" category which contains all the available methods to integrate with the fully detailed documentation and "Troubleshooting Your Issues/Errors" category which will allow you to trace and solve your issues without seeking for any assistance.
Please don't ever hesitate to comment back if you still have further inquiries. Let me know if there's anything else I can help with.
Glad to be always in help.
Hoping you have a profitable and successful trade.
w
wael mohamed bahaa el din
said
10 months ago
thanks for replay it was very helpful but now i got this error about ship name should be string but it is already string
Regarding the mentioned error, i can see that there is an issue with the details/variables your sent in the "sendCustomerDetails" function as you have passed the "$same_as _billing" parameter in it, meaning that shipping details is being taken from the customer details values above which is not clear on the sample code you sent, so make sure that you are using valid details in all of customer details values. Additionally, if you are still facing this issue, kindly share with the full sample code containing the customer details and "same_as_billing" values to investigate more properly.
I hope this resolves the confusion.
You should also know that we are providing you with a great "Solutions Portal" that includes so many articles that can walk you through any situation such as the "The How to & The What Is (FAQ)" category which contains the technical and non-technical FAQ, and the "How to Integrate with PayTabs?" category which contains all the available methods to integrate with the fully detailed documentation and "Troubleshooting Your Issues/Errors" category which will allow you to trace and solve your issues without seeking for any assistance.
Please don't ever hesitate to comment back if you still have further inquiries. Let me know if there's anything else I can help with.
Glad to be always in help.
Hoping you have a profitable and successful trade.
wael mohamed bahaa el din
in laravel i am trying to makke it work but when it comes to
Welcome, Wael,
Thanks for reaching PayTabs out on our Developers Community. My Name is Osama El-Hamahmy from the technical support team and I will be looking into this post and following up with you.
As per the mentioned case, kindly note that the mentioned method "sendTransaction" requires two parameters you should not as null.
For more details abour both parameters and how to initiate/manage the payment request and manage the transaction type, please check our soultion articles:
Step 3 - Laravel Package | Initiating the payment
3.2 Laravel Package | Manage the Transaction Type
Note that move his post will move to the right category.
You should also know that we are providing you with a great "Solutions Portal" that includes so many articles that can walk you through any situation such as the "The How to & The What Is (FAQ)" category which contains the technical and non-technical FAQ, and the "How to Integrate with PayTabs?" category which contains all the available methods to integrate with the fully detailed documentation and "Troubleshooting Your Issues/Errors" category which will allow you to trace and solve your issues without seeking for any assistance.
Please don't ever hesitate to comment back if you still have further inquiries. Let me know if there's anything else I can help with.
Glad to be always in help.
Hoping you have a profitable and successful trade.
- Oldest First
- Popular
- Newest First
Sorted by PopularOsama El-Hamahmy
Welcome, Wael,
Thanks for reaching PayTabs out on our Developers Community. My Name is Osama El-Hamahmy from the technical support team and I will be looking into this post and following up with you.
As per the mentioned case, kindly note that the mentioned method "sendTransaction" requires two parameters you should not as null.
For more details abour both parameters and how to initiate/manage the payment request and manage the transaction type, please check our soultion articles:
Step 3 - Laravel Package | Initiating the payment
3.2 Laravel Package | Manage the Transaction Type
Note that move his post will move to the right category.
You should also know that we are providing you with a great "Solutions Portal" that includes so many articles that can walk you through any situation such as the "The How to & The What Is (FAQ)" category which contains the technical and non-technical FAQ, and the "How to Integrate with PayTabs?" category which contains all the available methods to integrate with the fully detailed documentation and "Troubleshooting Your Issues/Errors" category which will allow you to trace and solve your issues without seeking for any assistance.
Please don't ever hesitate to comment back if you still have further inquiries. Let me know if there's anything else I can help with.
Glad to be always in help.
Hoping you have a profitable and successful trade.
wael mohamed bahaa el din
thanks for replay it was very helpful but now i got this error about ship name should be string but it is already string
wael mohamed bahaa el din
my code is
Hussein Mostafa
Welcome again Wael,
I hope my response finds you well.
Regarding the mentioned error, i can see that there is an issue with the details/variables your sent in the "sendCustomerDetails" function as you have passed the "$same_as _billing" parameter in it, meaning that shipping details is being taken from the customer details values above which is not clear on the sample code you sent, so make sure that you are using valid details in all of customer details values. Additionally, if you are still facing this issue, kindly share with the full sample code containing the customer details and "same_as_billing" values to investigate more properly.
I hope this resolves the confusion.
You should also know that we are providing you with a great "Solutions Portal" that includes so many articles that can walk you through any situation such as the "The How to & The What Is (FAQ)" category which contains the technical and non-technical FAQ, and the "How to Integrate with PayTabs?" category which contains all the available methods to integrate with the fully detailed documentation and "Troubleshooting Your Issues/Errors" category which will allow you to trace and solve your issues without seeking for any assistance.
Please don't ever hesitate to comment back if you still have further inquiries. Let me know if there's anything else I can help with.
Glad to be always in help.
Hoping you have a profitable and successful trade.