Shopify / mobile-buy-sdk-android

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using their credit card.
MIT License
212 stars 136 forks source link

这段代码在新版sdk中找不到,没有版本的说明,说明难理解 #708

Open zheng351138312 opened 2 years ago

zheng351138312 commented 2 years ago

call.enqueue(new GraphCall.Callback() {

@Override public void onResponse(@NonNull final GraphResponse response) { if (response.data().getCustomerReset().getUserErrors().isEmpty()) { String firstName = response.data().getCustomerReset().getCustomer().getFirstName(); String lastName = response.data().getCustomerReset().getCustomer().getLastName(); } else { Log.e(TAG, "Failed to reset customer"); } }

@Override public void onFailure(@NonNull final GraphError error) { Log.e(TAG, "Failed to execute query", error); } });