question

harshal avatar image
harshal asked harshal commented

Payment Integration on Website using PHP

After sending for transaction we are getting below error message,


EC000 - XML Validation Error: /GMF/CreditRequest/TAGrp/EncrptBlock | EncrptBlock | com/firstdata/Merchant/gmfV7.06 | value 'EjR6ngNNb3Qs85SV4ex7LG6j6khMZ WrikqMRzZEYkSJg4n8sYX3uZgB8WPxJUazprYEmIQjg4dfyGqO6sNWqiEIeAHqKXyKLxml54ERxFEHObZTy287fB2yBVceYJ


Even though we are getting PaymentID.


So what can be the issue?


check below output we get after successfully sending payment.


{"paymentId":"DSQSCFTQYQN98","result":"DECLINED","failureMessage":"EC000 - XML Validation Error: /GMF/CreditRequest/TAGrp/EncrptBlock | EncrptBlock | com/firstdata/Merchant/gmfV7.06 | value 'EjR6ngNNb3Qs85SV4ex7LG6j6khMZ WrikqMRzZEYkSJg4n8sYX3uZgB8WPxJUazprYEmIQjg4dfyGqO6sNWqiEIeAHqKXyKLxml54ERxFEHObZTy287fB2yBVceYJ"}

Payments
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

harshal avatar image harshal commented ·

Let me know if any more details needed,

I used RSA class from phpseclib1.0.19


and used code as per below url.


https://community.clover.com/questions/3241/how-to-integrate-clover-payment-api-from-web-app-i.html


I appreciate for the help.



0 Likes 0 ·

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered harshal commented

It appears you are using our Developer Pay API which should not be used for new development:

https://docs.clover.com/docs/developer-pay-api

IMPORTANT
The Developer Pay API has been superseded by the Ecommerce API. New Clover apps providing card-not-present payments should use the Ecommerce API instead of Developer Pay.
If you want to migrate an existing Developer Pay app, see Migrating from Developer Pay to Ecommerce.

You should be using our new Ecommerce API - https://docs.clover.com/docs/ecommerce-data-model and the recommended integration type (iframe).

3 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

harshal avatar image harshal commented ·

Hey David,


Hope all well at your end, in this pandemic situation.


and yes Thanks for the quick reply,


Can you please help me out for getting PHP sample code?


As in your given doc, it has only other than PHP sample code there.


And if you do not have PHP sample code, then can you please do the needful and send me the exact document URL in which I can find the option or explanation of the API using which I can take payment on clover using credit card on our site.


Thanks again, for the quick help,


Thanks a lot.




0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ harshal commented ·

You shouldn't be using Developer Pay, so providing you with a PHP code example would not be beneficial. You should be using our iframe integration as it offers a much lower PCI burder on your end - https://docs.clover.com/docs/ecommerce-integration-types.

You can read more details on using the iframe integration here - https://docs.clover.com/docs/clover-iframe-integrations.

1 Like 1 ·
harshal avatar image harshal David Marginian ♦♦ commented ·

Hey David, Really thanks a lot,


let me check your given links and try to implement them.


If I have any issue, then will get back to you. please help me if i stuck anywhere.


Really thanks a lot.


Thanks.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community