使用Getnet测试卖家借记卡支付报错“Seller not enrolled”求助
Hey there, I’ve dealt with a few similar issues while working with Getnet’s homologacao environment, so let me walk you through some actionable steps to fix this "Seller not enrolled" error:
Verify your sandbox seller account enrollment
Getnet’s test environment requires sellers to explicitly enable debit card payment functionality during account setup. Log into your homologacao merchant dashboard and check if debit payments are activated for your account. If not, you’ll need to complete any required verification steps or reach out to their support team to enable this permission.Double-check your Seller ID and tokens
Make sure thedata-getnet-selleridvalue corresponds to your sandbox-specific seller ID (not a production one). Similarly, confirm that bothdata-getnet-tokenand the OAuth token indata-getnet-gn3ds-merchant-backend-token-oauthare generated for the homologacao environment—expired or mismatched tokens often trigger enrollment-related errors. Try regenerating fresh test tokens and see if that resolves the issue.Fix missing or invalid parameters
Yourdata-getnet-url-callbackis currently empty, which might be causing validation issues. Even in sandbox mode, Getnet expects a valid callback URL (you can use a placeholder likehttps://your-test-domain.com/payment-callbackfor testing). Also, double-check that all customer and address parameters are correctly formatted (no missing fields, properly sanitized values with special characters removed).Simplify 3DS-related configurations
While you’ve setdata-getnet-gn3ds="false", some sandbox rules might still enforce certain 3DS parameters. Try temporarily removing non-essential 3DS attributes (like shipping method or framework modal) to rule out configuration conflicts. Ensuredata-getnet-gn3ds-environment="SDB"is correctly set, as this specifies the sandbox environment.Reach out to Getnet’s sandbox support
If all the above steps don’t work, the issue is likely tied to your account’s backend configuration. Getnet’s support team can directly check your seller account status in their sandbox system, verify if there are any pending enrollments or restrictions, and guide you through resolving it.
Here’s your provided ScriptTag code formatted for clarity:
import ScriptTag from "react-script-tag"; <ScriptTag async src="https://checkout-homologacao.getnet.com.br/loader.js" data-getnet-sellerid={payment.sellerId} data-getnet-token={payment.token} data-getnet-amount={formatMoney(maskAmount)} data-getnet-customerid={payment.customer.id} data-getnet-orderid={payment.orderId} data-getnet-button-class="open-checkout" data-getnet-customer-first-name={payment.customer.firstName} data-getnet-customer-last-name={payment.customer.lastName} data-getnet-customer-document-type={payment.customer.documentType} data-getnet-customer-document-number={removeSpecialChar(payment.customer.documentNumber)} data-getnet-customer-email={payment.customer.email} data-getnet-customer-phone-number={removeSpecialChar(payment.customer.phoneNumber)} data-getnet-customer-address-street={payment.address.street} data-getnet-customer-address-street-number={payment.address.number} data-getnet-customer-address-complementary={payment.address.complementary} data-getnet-customer-address-neighborhood={payment.address.neighborhood} data-getnet-customer-address-city={payment.address.city} data-getnet-customer-address-state={payment.address.state} data-getnet-customer-address-zipcode={removeSpecialChar(payment.address.zipcode)} data-getnet-customer-country={payment.address.country} data-getnet-items={payment.items} data-getnet-url-callback="" data-getnet-installments="4" data-getnet-gn3ds="false" data-getnet-gn3ds-currency="BRL" data-getnet-gn3ds-merchant-backend-url="https://api-homologacao.getnet.com.br/v2/hubbff/3ds/" data-getnet-gn3ds-token-type="oauth" data-getnet-gn3ds-merchant-backend-token-oauth={`bearer ${token.access_token}`} data-getnet-gn3ds-environment="SDB" data-getnet-gn3ds-shipping-method="lowcost" data-getnet-gn3ds-framework-modal="bootstrap3" data-getnet-gn3ds-shipping-destination-code="01" />
内容的提问来源于stack exchange,提问作者Gatão

